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

Method createDir

packages/filesystem/webdav/webdav.ts:82–92  ·  view source on GitHub ↗
(path: string, _opts?: FileCreateOptions)

Source from the content-addressed store, hash-verified

80 }
81
82 async createDir(path: string, _opts?: FileCreateOptions): Promise<void> {
83 try {
84 await this.client.createDirectory(joinPath(this.basePath, path));
85 } catch (e: any) {
86 // 如果是405错误,则忽略
87 if (e.response?.status === 405 || e.message?.includes("405")) {
88 return;
89 }
90 throw e;
91 }
92 }
93
94 async delete(path: string): Promise<void> {
95 try {

Callers

nothing calls this directly

Calls 1

joinPathFunction · 0.90

Tested by

no test coverage detected