Interface WalkEntry

Walk entry for walk, walkSync, expandGlob and expandGlobSync.

interface WalkEntry {
    isDirectory: boolean;
    isFile: boolean;
    isSymlink: boolean;
    name: string;
    path: string;
}
Hierarchy
  • DirEntry
    • WalkEntry

Properties

isDirectory: boolean

True if this is info for a regular directory. Mutually exclusive to DirEntry.isFile and DirEntry.isSymlink.

isFile: boolean

True if this is info for a regular file. Mutually exclusive to DirEntry.isDirectory and DirEntry.isSymlink.

isSymlink: boolean

True if this is info for a symlink. Mutually exclusive to DirEntry.isFile and DirEntry.isDirectory.

name: string

The file name of the entry. It is just the entity name and does not include the full path.

path: string

Full path of the entry.