Skip to content

Commit 492e3e3

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 5de3053 commit 492e3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/fs.js‎

Lines changed: 2 additions & 2 deletions
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)