MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / createDir

Method createDir

src/fileSystem/ftp.js:178–190  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

176 }
177
178 async createDir(name) {
179 await this.#connectIfNotConnected();
180 return new Promise((resolve, reject) => {
181 ftp.createDirectory(
182 this.#conId,
183 Path.join(this.#path, name),
184 async () => {
185 resolve(Url.join(this.#origin, this.#path, name));
186 },
187 reject,
188 );
189 });
190 }
191
192 async delete() {
193 await this.#connectIfNotConnected();

Callers

nothing calls this directly

Calls 3

resolveFunction · 0.85
createDirectoryMethod · 0.65

Tested by

no test coverage detected