Function getFilePaths

  • Recursively search for files in the given directory and filters them based on given filterer function. If a file path is passed, it returns an array containing only that path.

    Example

    getFiles("./tests/"); // ["./tests/vangware.test.ts"]
    

    Returns

    Array of files in given directory that match filterer.

    Parameters

    • fileOrDirectory: Readonly<URL>

      Directory to get files from.

    Returns Promise<ReadOnlyURLs>