Class FileSystemUtils
Inheritance
System.Object
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()
Namespace: Aurigma.DesignAtoms.Common
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class FileSystemUtils
Fields
_logger
Declaration
public static readonly ILogger _logger
Field Value
| Type | Description |
|---|---|
| NLog.ILogger |
Methods
DeleteDirectory(String)
Declaration
public static void DeleteDirectory(string folderPath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | folderPath |
GetExecutingAssemblyDir()
Declaration
public static string GetExecutingAssemblyDir()
Returns
| Type | Description |
|---|---|
| System.String |
GetTempFilePath(String, FileFormat)
Declaration
public static string GetTempFilePath(string tempDirectory, FileFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tempDirectory | |
| FileFormat | format |
Returns
| Type | Description |
|---|---|
| System.String |
GetTempFilePath(String, String)
Declaration
public static string GetTempFilePath(string tempDirectory, string extension = "tmp")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tempDirectory | |
| System.String | extension |
Returns
| Type | Description |
|---|---|
| System.String |
TryDeleteFile(String)
Declaration
public static bool TryDeleteFile(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath |
Returns
| Type | Description |
|---|---|
| System.Boolean |