Skip to content

Commit

Permalink
Update lib/internal/fs/promises.js
Browse files Browse the repository at this point in the history
Co-authored-by: Mestery <[email protected]>
  • Loading branch information
bcoe and Mesteery authored Aug 8, 2021
1 parent 25613ca commit e52047b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/internal/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,8 @@ async function access(path, mode = F_OK) {

async function cp(src, dest, options) {
options = validateCpOptions(options);
src = getValidatedPath(src, 'src');
dest = getValidatedPath(dest, 'dest');
src = pathModule.toNamespacedPath(src);
dest = pathModule.toNamespacedPath(dest);
src = pathModule.toNamespacedPath(getValidatedPath(src, 'src'));
dest = pathModule.toNamespacedPath(getValidatedPath(dest, 'dest'));
return lazyLoadCpPromises()(src, dest, options);
}

Expand Down

0 comments on commit e52047b

Please sign in to comment.