Documentation
    Preparing search index...
    • Does a file match any of the compiled globs?

      The path is tested in full and by basename, so *.mp4 excludes videos in any folder while movies/*.mp4 excludes only those in movies. Directories are also tested with a trailing separator, so cache/** excludes the cache directory itself as well as everything below it.

      Parameters

      • patterns: RegExp[]

        compiled globs, from parseGlobList()

      • filePath: string

        path of the file relative to the file store

      • isDirectory: boolean = false

        whether the path is a directory

      Returns boolean

      true if the path matches any pattern