walkDirSync MethodStatic

Walks a directory in breadth first fashion

walkDirSync(rootDir: string, cb: (pathname: string, isDir: boolean) => boolean): void

Parameter Type Description
rootDir string directory from where the traversal starts
cb (pathname: string, isDir: boolean) => boolean callback that would be called with full path of file or directory

Returns - void

Defined in

Last Updated: 12 June, 2024