recursive-readdir.d.ts 601 B

123456789
  1. /**
  2. * Recursively read directory
  3. * @param {string} dir Directory to read
  4. * @param {RegExp} filter Filter for the file name, only the name part is considered, not the full path
  5. * @param {string[]=[]} arr This doesn't have to be provided, it's used for the recursion
  6. * @param {string=dir`} rootDir Used to replace the initial path, only the relative path is left, it's faster than path.relative.
  7. * @returns Promise array holding all relative paths
  8. */
  9. export declare function recursiveReadDir(dir: string, filter: RegExp, ignore?: RegExp, arr?: string[], rootDir?: string): Promise<string[]>;