Skip to content

Commit ba40b2e

Browse files
CanadaHonkUlisesGascon
authored andcommitted
fs: replace deprecated path._makeLong in copyFile
PR-URL: #50844 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent c8d6dd5 commit ba40b2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3001,8 +3001,8 @@ function copyFile(src, dest, mode, callback) {
30013001
src = getValidatedPath(src, 'src');
30023002
dest = getValidatedPath(dest, 'dest');
30033003

3004-
src = pathModule._makeLong(src);
3005-
dest = pathModule._makeLong(dest);
3004+
src = pathModule.toNamespacedPath(src);
3005+
dest = pathModule.toNamespacedPath(dest);
30063006
mode = getValidMode(mode, 'copyFile');
30073007
callback = makeCallback(callback);
30083008

0 commit comments

Comments
 (0)