MCPcopy Create free account
hub / github.com/dethcrypto/dethcode / Directory

Class Directory

packages/ethereum-viewer/src/fs/fileSystemProvider.ts:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32export class Directory implements vscode.FileStat {
33 type: vscode.FileType;
34 ctime: number;
35 mtime: number;
36 size: number;
37
38 name: string;
39 entries: Map<string, File | Directory>;
40
41 constructor(name: string) {
42 this.type = vscode.FileType.Directory;
43 this.ctime = Date.now();
44 this.mtime = Date.now();
45 this.size = 0;
46 this.name = name;
47 this.entries = new Map();
48 }
49}
50
51export type Entry = File | Directory;
52

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected