Skip to content

Commit

Permalink
fs: replace deprecated path._makeLong in copyFile
Browse files Browse the repository at this point in the history
PR-URL: #50844
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
CanadaHonk authored and UlisesGascon committed Dec 13, 2023
1 parent 32ad208 commit 1c0b221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3001,8 +3001,8 @@ function copyFile(src, dest, mode, callback) {
src = getValidatedPath(src, 'src');
dest = getValidatedPath(dest, 'dest');

src = pathModule._makeLong(src);
dest = pathModule._makeLong(dest);
src = pathModule.toNamespacedPath(src);
dest = pathModule.toNamespacedPath(dest);
mode = getValidMode(mode, 'copyFile');
callback = makeCallback(callback);

Expand Down

0 comments on commit 1c0b221

Please sign in to comment.