Determines whether the given path refers to an existing directory on disk.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool Exists(
string path
)
Parameters
- path
- Type: SystemString
The path to test.
Return Value
Type:
Booleantrue if
path refers to an existing directory; otherwise, false.
See Also