Function getFilePaths

  • Recursively search for files in the given directory and yields every file. If a file path is passed initially, that file is shielded directly.

    Example

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

    Yields

    Files recursively found in the given directory.

    Parameters

    • fileOrDirectory: Readonly<URL>

      Directory to get files from.

    Returns AsyncGenerator<Readonly<URL>, void, unknown>