DirectoryExists Method (String)
Determines whether the given path refers to an existing directory on disk.
AlphaFS (in AlphaFS.dll) Version: 2.0
public static bool Exists(
Public Shared Function Exists (
path As String
) As Boolean
static bool Exists(
static member Exists :
path : string -> bool
- Type: SystemString
The path to test.
Returns if path refers to an existing directory.
Returns if the directory does not exist or an error occurs when trying to determine if the specified file exists.
The Exists method returns if any error occurs while trying to determine if the specified file exists.
This can occur in situations that raise exceptions such as passing a file name with invalid characters or too many characters,
a failing or missing disk, or if the caller does not have permission to read the file.