Skip to content

Commit

Permalink
fs: replace deprecated path._makeLong in copyFile
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Nov 21, 2023
1 parent 7c726f7 commit e27fef2
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 @@ -2981,8 +2981,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 e27fef2

Please sign in to comment.