Class FileSystemUtils
Namespace: Aurigma.DesignAtoms.Common
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class FileSystemUtils
Inheritance: System.Object -> FileSystemUtils
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
GetTempFilePath
public static string GetTempFilePath(string tempDirectory, FileFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | tempDirectory | |
| Aurigma.DesignAtoms.Model.Configuration.FileFormat | format |
Returns
System.String
GetTempFilePath
public static string GetTempFilePath(string tempDirectory, string extension = "tmp")
Parameters
| Type | Name | Description |
|---|---|---|
System.String | tempDirectory | |
System.String | extension |
Returns
System.String
TryDeleteFile
public static bool TryDeleteFile(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | filePath |
Returns
System.Boolean
DeleteDirectory
public static void DeleteDirectory(string folderPath)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | folderPath |
GetExecutingAssemblyDir
public static string GetExecutingAssemblyDir()
Returns
System.String
Fields
_logger
public static readonly ILogger _logger