Skip to main content

Interface: WalkSource

Where walk reads the tree from: the file system by default, or another tree with the same shape, such as the files of an asar archive.

Methods​

lstat()​

lstat(file): Promise<Stats>

The stats of file, not following a symlink.

Parameters​

file​

string

Returns​

Promise<Stats>


readdir()​

readdir(dir): Promise<string[]>

The names of the entries of dir; empty when dir does not exist.

Parameters​

dir​

string

Returns​

Promise<string[]>