Directory.Exists Method

Determines whether the given path refers to an existing directory on disk.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static bool Exists (
         string path
)

Parameters

  • path
    The path to test.

Return Value

true if path refers to an existing directory; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Directory Class
Directory Members
System.IO Namespace