System.IO.Directory.Exists C# (CSharp) Method

Exists() public static method

public static Exists ( string path ) : bool
path string
return bool
        public static bool Exists(string path) { throw null; }
        public static System.DateTime GetCreationTime(string path) { throw null; }

Usage Example

Example #1
0
    /// <summary>
    ///     Checks whether a certain sub-directory exists.
    /// </summary>
    /// <param name="path">The path of the directory.</param>
    /// <returns>
    ///     <see langword="true" /> if the directory exists, <see langword="false" /> otherwise.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    ///     <paramref name="path" /> is <see langword="null" /> (<see langword="Nothing" />
    ///     in Visual Basic).
    /// </exception>
    public bool Exists(string path)
    {
        _ = Requires.NotNullOrWhiteSpace(
            path,
            nameof(path));

        return(FSDir.Exists(path));
    }
All Usage Examples Of System.IO.Directory::Exists