Directory
Provides access to methods that manipulate directories on disk.
Gets the singleton instance of Directory.
protected Directory()
Checks folder path to see if it is valid, unc and absolute paths only
Prepends the provided path, if it is longer than 258 characters, with a network path prepend.
Checks the path to see if it is writable.
public virtual void DeleteDirectoryIfExists(string directory, bool recursive, bool exceptOnExistenceCheckError)