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

Function copy

src/fileSystem/internalFs.js:187–189  ·  view source on GitHub ↗

* Copy a file or directory to another location * @param {string} src * @param {string} dest * @returns {Promise } The new location of the file or directory

(src, dest)

Source from the content-addressed store, hash-verified

185 * @returns {Promise<string>} The new location of the file or directory
186 */
187 copy(src, dest) {
188 return moveOrCopy("copyTo", src, dest);
189 },
190
191 /**
192 * Move a file or directory to another location

Callers

nothing calls this directly

Calls 1

moveOrCopyFunction · 0.85

Tested by

no test coverage detected