Skip to content

Commit 3bf47d4

Browse files
CanadaHonkRafaelGSS
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 2c0d1ae commit 3bf47d4

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
@@ -2993,8 +2993,8 @@ function copyFile(src, dest, mode, callback) {
29932993
src = getValidatedPath(src, 'src');
29942994
dest = getValidatedPath(dest, 'dest');
29952995

2996-
src = pathModule._makeLong(src);
2997-
dest = pathModule._makeLong(dest);
2996+
src = pathModule.toNamespacedPath(src);
2997+
dest = pathModule.toNamespacedPath(dest);
29982998
mode = getValidMode(mode, 'copyFile');
29992999
callback = makeCallback(callback);
30003000

0 commit comments

Comments
 (0)