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 <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
CanadaHonk authored and UlisesGascon committed Dec 19, 2023
1 parent c8d6dd5 commit ba40b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fs.js
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 ba40b2e

Please sign in to comment.