MCPcopy Create free account
hub / github.com/nodejs/node / rename

Method rename

lib/internal/vfs/provider.js:219–224  ·  view source on GitHub ↗

* Renames a file or directory. * @param {string} oldPath The old path * @param {string} newPath The new path * @returns {Promise }

(oldPath, newPath)

Source from the content-addressed store, hash-verified

217 * @returns {Promise<void>}
218 */
219 async rename(oldPath, newPath) {
220 if (this.readonly) {
221 throw createEROFS('rename', oldPath);
222 }
223 throw new ERR_METHOD_NOT_IMPLEMENTED('rename');
224 }
225
226 /**
227 * Renames a file or directory synchronously.

Callers 15

configure_intlFunction · 0.45
extract_zipFunction · 0.45
closeMethod · 0.45
WriteMethod · 0.45
renameFunction · 0.45
renameSyncFunction · 0.45
renameFunction · 0.45
renameFunction · 0.45
renameFunction · 0.45

Calls 1

createEROFSFunction · 0.85

Tested by

no test coverage detected