dgamevfs.util

  • Declaration

    pure @safe bool subPathMatch(string path, string parentPath, string glob);

    Match path of a directory or a file relative to a parent directory with a glob pattern.

    Parameters

    string path

    Path of the file/directory.

    string parentPath

    Path of the parent directory.

    string glob

    Glob pattern to match with. If null, a match is assumed.

    Return Value

    True on match or if glob is null; false otherwise.