Interface IWalkDirectoryOptions

Hierarchy

  • Omit<WalkOptions, "filter" | "no_return">
    • IWalkDirectoryOptions

Properties

filter?: ((fullpath, stat) => boolean)

Type declaration

    • (fullpath, stat): boolean
    • Parameters

      • fullpath: string
      • stat: Stats

      Returns boolean

find-links?: boolean

default True. if false this will use stat insteqad of lstat and not find links at all.

follow-symlinks?: boolean

follow symlinks. default FALSE

fs?: any

provide an alternate implementation of fs like graceful-fs

max-depth?: number

only travel to max depth. emits an error if hit.

no-recurse?: boolean

only go one level deep. convenience param.

return-object?: boolean

return an object of {path:stat} instead of just the resolved path names

sync?: boolean

make this syncronous. the same as calling walkdir.sync

track-inodes?: boolean

on filesystems where inodes are not unique like windows (or perhaps hardlinks) some files may not be emitted due to inode collision. turning off this behavior may be required but at the same time may lead to hitting max_depth via link loop.

Generated using TypeDoc