Show / Hide Table of Contents

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 Source

Get()

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.

View Source

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

True if the path is writable, otherwise false.

  • View Source
Back to top Generated by DocFX