Share via


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 (
         stringpath
)

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, and 4.1.

See Also

Reference

Directory Class
Directory Members
System.IO Namespace