MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / open

Method open

packages/filesystem/limiter.ts:101–108  ·  view source on GitHub ↗
(file: FileInfo)

Source from the content-addressed store, hash-verified

99 }
100
101 async open(file: FileInfo): Promise<FileReader> {
102 return this.limiter.execute(async () => {
103 const reader = await this.fs.open(file);
104 return {
105 read: (type) => this.limiter.execute(() => reader.read(type), "read"),
106 };
107 }, "open");
108 }
109
110 async openDir(path: string): Promise<FileSystem> {
111 return this.limiter.execute(async () => {

Callers

nothing calls this directly

Calls 3

executeMethod · 0.65
openMethod · 0.65
readMethod · 0.65

Tested by

no test coverage detected