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

Method exists

src/fileSystem/ftp.js:252–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251
252 async exists() {
253 await this.#connectIfNotConnected();
254 return new Promise((resolve, reject) => {
255 ftp.exists(this.#conId, this.#path, resolve, (error) => {
256 reject(error);
257 console.error("FTP error: ", error);
258 });
259 });
260 }
261
262 async stat() {
263 if (this.#stat) return this.#stat;

Callers

nothing calls this directly

Calls 3

existsMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected