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

Method delete

packages/filesystem/webdav/webdav.ts:94–103  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

92 }
93
94 async delete(path: string): Promise<void> {
95 try {
96 await this.client.deleteFile(joinPath(this.basePath, path));
97 } catch (e: any) {
98 if (e.response?.status === 404 || e.message?.includes("404")) {
99 return;
100 }
101 throw e;
102 }
103 }
104
105 async list(): Promise<FileInfo[]> {
106 let dir: FileStat[];

Callers

nothing calls this directly

Calls 2

joinPathFunction · 0.90
deleteFileMethod · 0.80

Tested by

no test coverage detected