Home Reference Source

References

summary
public

F isDir(path: string | Buffer | URL): Promise<boolean>

Whether a file is a directory or not.

public

F byDirname(paths: string[]): Object

Group paths by their parent path.

public

F isAscendant(subject: string, descendant: string): boolean

Whether a path is an ascendant of another one.

public

F isDescendant(subject: string, ascendant: string): boolean

Whether a path is an descendant of another one.

public

F isUniqueAndNotDescendant(path: string, index: number, paths: string[]): boolean

Whether a path is unique and does not have any ascendant within an array of paths.

public

V lStat(path: string | Buffer | URL, options: Object): Promise<fs.Stats>: *

Promisified version of fs.lstat(): asynchronous lstat(2).

public

V readDir(path: string | Buffer | URL, options: Object): Promise<string[]|Buffer[]|fs.Dirent[]>: *

Promisified version of fs.readdir(): asynchronous readdir(3).

public

V stat(path: string | Buffer | URL, options: Object): Promise<fs.Stats>: *

Promisified version of fs.stat(): asynchronous stat(2).

public

Default traversing options.

public

Regular expression that matches all "ascendant" paths:

  • '..'
  • '../..'
  • '../../..'
  • etc.