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