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

Method copyFileSync

lib/internal/vfs/file_system.js:368–372  ·  view source on GitHub ↗

* Copies a file synchronously. * @param {string} src Source path * @param {string} dest Destination path * @param {number} [mode] Copy mode flags

(src, dest, mode)

Source from the content-addressed store, hash-verified

366 * @param {number} [mode] Copy mode flags
367 */
368 copyFileSync(src, dest, mode) {
369 const srcProviderPath = this.#toProviderPath(src);
370 const destProviderPath = this.#toProviderPath(dest);
371 this[kProvider].copyFileSync(srcProviderPath, destProviderPath, mode);
372 }
373
374 /**
375 * Gets the real path by resolving all symlinks.

Callers

nothing calls this directly

Calls 1

#toProviderPathMethod · 0.95

Tested by

no test coverage detected