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 RafaelGSS committed Nov 29, 2023
1 parent 5de3053 commit 492e3e3
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 @@ -2993,8 +2993,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 492e3e3

Please sign in to comment.