Method DirectoryExists
DirectoryExists(string?)
Gets whether the given path refers to an existing directory.
public virtual bool DirectoryExists(string? path)
Parameters
pathstringThe path to test.
Returns
- bool
trueif path refers to an existing directory;falseif the directory does not exist or an error occurs during the operation.