---
title: "Class FileSystemUtils | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common/FileSystemUtils/"
---

# Class FileSystemUtils

> **Inheritance:** `System.Object` -> FileSystemUtils

###### **Namespace**: [Aurigma.DesignAtoms.Common](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public static class FileSystemUtils
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Methods

### GetTempFilePath

```csharp
public static string GetTempFilePath(string tempDirectory, FileFormat format)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *tempDirectory* |  |
| [Aurigma.DesignAtoms.Model.Configuration.FileFormat](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Configuration/FileFormat.md) | *format* |  |

##### Returns

`System.String`

### GetTempFilePath

```csharp
public static string GetTempFilePath(string tempDirectory, string extension = "tmp")
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *tempDirectory* |  |
| `System.String` | *extension* |  |

##### Returns

`System.String`

### TryDeleteFile

```csharp
public static bool TryDeleteFile(string filePath)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *filePath* |  |

##### Returns

`System.Boolean`

### DeleteDirectory

```csharp
public static void DeleteDirectory(string folderPath)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *folderPath* |  |

### GetExecutingAssemblyDir

```csharp
public static string GetExecutingAssemblyDir()
```

##### Returns

`System.String`

## Fields

### _logger

```csharp
public static readonly ILogger _logger
```
