Lines Matching defs:dest
1032 const ctx = { path: oldPath, dest: newPath };
1810 const ctx = { path: target, dest: path };
1850 const ctx = { path: existingPath, dest: newPath };
2937 * Asynchronously copies `src` to `dest`. By
2938 * default, `dest` is overwritten if it already exists.
2940 * @param {string | Buffer | URL} dest
2945 function copyFile(src, dest, mode, callback) {
2952 dest = getValidatedPath(dest, 'dest');
2955 dest = pathModule._makeLong(dest);
2961 binding.copyFile(src, dest, mode, req);
2965 * Synchronously copies `src` to `dest`. By
2966 * default, `dest` is overwritten if it already exists.
2968 * @param {string | Buffer | URL} dest
2972 function copyFileSync(src, dest, mode) {
2974 dest = getValidatedPath(dest, 'dest');
2976 const ctx = { path: src, dest }; // non-prefixed
2979 dest = pathModule._makeLong(dest);
2981 binding.copyFile(src, dest, mode, undefined, ctx);
2986 * Asynchronously copies `src` to `dest`. `src` can be a file, directory, or
2989 * @param {string | URL} dest
2994 function cp(src, dest, options, callback) {
3002 dest = pathModule.toNamespacedPath(getValidatedPath(dest, 'dest'));
3004 cpFn(src, dest, options, callback);
3008 * Synchronously copies `src` to `dest`. `src` can be a file, directory, or
3011 * @param {string | URL} dest
3015 function cpSync(src, dest, options) {
3018 dest = pathModule.toNamespacedPath(getValidatedPath(dest, 'dest'));
3020 cpSyncFn(src, dest, options);