Class WritableDirectory
Provides functionality to check whether directories can be written to.
Inheritance
System.Object
WritableDirectory
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.String | A writable path. |
Exceptions
Type | Condition |
---|---|
System.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 |
---|---|---|
System.String | path | The path to check for writ-ability. |
Returns
Type | Description |
---|---|
System.Boolean |
|