Skip to content

Interface: FSLike

Methods

exists()

exists(path): boolean;

Parameters

Parameter Type
path string

Returns

boolean


isDirectory()

isDirectory(path): boolean;

Parameters

Parameter Type
path string

Returns

boolean


isFile()

isFile(path): boolean;

Parameters

Parameter Type
path string

Returns

boolean


mkdir()

mkdir(path): void;

Parameters

Parameter Type
path string

Returns

void


readDir()

readDir(path): string[];

Parameters

Parameter Type
path string

Returns

string[]


readFile()

readFile(path): string;

Parameters

Parameter Type
path string

Returns

string


writeFile()

writeFile(path, content): void;

Parameters

Parameter Type
path string
content string

Returns

void