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

Function renameSync

lib/internal/vfs/setup.js:300–305  ·  view source on GitHub ↗
(oldPath, newPath)

Source from the content-addressed store, hash-verified

298 rmSync: (path, options) => vfsOpVoid(path, (vfs, n) => vfs.rmSync(n, options)),
299 unlinkSync: (path) => vfsOpVoid(path, (vfs, n) => vfs.unlinkSync(n)),
300 renameSync(oldPath, newPath) {
301 return vfsOpVoid(oldPath, (vfs, n) => {
302 checkSameVFS(n, toPathStr(newPath), 'rename', vfs);
303 vfs.renameSync(n, resolve(toPathStr(newPath)));
304 });
305 },
306 copyFileSync(src, dest, mode) {
307 return vfsOpVoid(src, (vfs, n) => {
308 checkSameVFS(n, toPathStr(dest), 'copyfile', vfs);

Callers

nothing calls this directly

Calls 5

vfsOpVoidFunction · 0.85
checkSameVFSFunction · 0.85
toPathStrFunction · 0.85
resolveFunction · 0.50
renameSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…