MCPcopy Index your code
hub / github.com/nodejs/node / renameSync

Method renameSync

lib/internal/vfs/provider.js:231–236  ·  view source on GitHub ↗

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

(oldPath, newPath)

Source from the content-addressed store, hash-verified

229 * @param {string} newPath The new path
230 */
231 renameSync(oldPath, newPath) {
232 if (this.readonly) {
233 throw createEROFS('rename', oldPath);
234 }
235 throw new ERR_METHOD_NOT_IMPLEMENTED('renameSync');
236 }
237
238 // === DEFAULT IMPLEMENTATIONS (built on primitives) ===
239

Calls 1

createEROFSFunction · 0.85

Tested by

no test coverage detected