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

Function cpSync

lib/fs.js:3711–3717  ·  view source on GitHub ↗

* Synchronously copies `src` to `dest`. `src` can be a file, directory, or * symlink. The contents of directories will be copied recursively. * @param {string | URL} src * @param {string | URL} dest * @param {object} [options] * @returns {void}

(src, dest, options)

Source from the content-addressed store, hash-verified

3709 * @returns {void}
3710 */
3711function cpSync(src, dest, options) {
3712 options = validateCpOptions(options);
3713 src = getValidatedPath(src, 'src');
3714 dest = getValidatedPath(dest, 'dest');
3715 lazyLoadCp();
3716 cpSyncFn(src, dest, options);
3717}
3718
3719function lazyLoadStreams() {
3720 if (!ReadStream) {

Calls 2

lazyLoadCpFunction · 0.85
cpSyncFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…