EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method IsParentDir

    IsParentDir(string, string)

    Checks if a given path is a parent directory of another.

    Declaration
    public static bool IsParentDir(string candidatePath, string parentDir)
    Parameters
    Type Name Description
    string candidatePath

    Potential child directory path.

    string parentDir

    Potential parent directory path.

    Returns
    Type Description
    bool

    Boolean value indicating whether the candidatePath is a child of parentDir.

    Examples
    IsParentDir("C:\\temp\\file", "C:\\temp"); //Returns true
    © Xab3r. All rights reserved.