Click or drag to resize
DirectoryExists Method
Determines whether the given path refers to an existing directory on disk.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool Exists(
	string path
)

Parameters

path
Type: SystemString
The path to test.

Return Value

Type: Boolean
true if path refers to an existing directory; otherwise, false.
See Also