Directory.Exists Method |
System.IO.Directory
Directory.Exists( path )
The path of the directory whose existence is to be determined
True if the specified path exists; False otherwise
Determines whether a given directory exists
path can be either an absolute path (a complete path from the root directory to the directory whose existence is to be confirmed) or a relative path (starting from the current directory to the path whose existence is to be confirmed).
path can be either a path on the local system, the path of a mapped network drive, or a UNC path.
path cannot contain wildcard characters .