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

Method create

packages/filesystem/limiter.ts:117–124  ·  view source on GitHub ↗
(path: string, opts?: FileCreateOptions)

Source from the content-addressed store, hash-verified

115 }
116
117 async create(path: string, opts?: FileCreateOptions): Promise<FileWriter> {
118 return this.limiter.execute(async () => {
119 const writer = await this.fs.create(path, opts);
120 return {
121 write: (content) => this.limiter.execute(() => writer.write(content), "write"),
122 };
123 }, "create");
124 }
125
126 createDir(dir: string, opts?: FileCreateOptions): Promise<void> {
127 return this.limiter.execute(() => this.fs.createDir(dir, opts), "createDir");

Callers

nothing calls this directly

Calls 3

executeMethod · 0.65
createMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected