Class WritableDirectory
Provides functionality to check whether directories can be written to.
Namespace: Sartorius.SAF.Security
Assembly: Sartorius.SAF.dll
Syntax
public static class WritableDirectory
Methods
View SourceGet()
Gets a default directory for writing log files.
Declaration
public static string Get()
Returns
| Type | Description |
|---|---|
| string | A writable path. |
Exceptions
| Type | Condition |
|---|---|
| UnauthorizedAccessException | In case no directory is writable. |
IsWritable(string)
Checks whether the specified path can be written to.
Declaration
public static bool IsWritable(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to check for writ-ability. |
Returns
| Type | Description |
|---|---|
| bool |
|