MCPcopy
hub / github.com/patriksimek/vm2 / VMFileSystem

Class VMFileSystem

index.d.ts:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 * Implementation of a default file system.
41 */
42export class VMFileSystem implements VMFileSystemInterface {
43 constructor(options?: { fs?: VMFS, path?: VMPath });
44 /** Implements fs.statSync */
45 statSync: typeof fs.statSync;
46 /** Implements fs.readFileSync */
47 readFileSync: typeof fs.readFileSync;
48 /** Implements path.resolve */
49 resolve: typeof pa.resolve;
50 /** Implements path.isAbsolute */
51 isAbsolute: typeof pa.isAbsolute;
52 /** Implements path.join */
53 join: typeof pa.join;
54 /** Implements path.basename */
55 basename: typeof pa.basename;
56 /** Implements path.dirname */
57 dirname: typeof pa.dirname;
58 /** Implements (sep) => sep === path.sep */
59 isSeparator(char: string): boolean;
60}
61
62/**
63 * Function that will be called to load a built-in into a vm.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…