Documentation

    Function detectPatternType

    • Determines if a pattern represents a file, a directory, or a glob pattern.

      Parameters

      • pattern: string

        The pattern string to evaluate.

      Returns "file" | "directory" | "glob"

      'file', 'directory', or 'glob'.

    MMNEPVFCICPMFPCPTTAAATR