From dd338e3429f80c3ac8040a5541dbe54902368bde Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Thu, 23 Nov 2023 22:47:36 +0000 Subject: [PATCH] fs: replace deprecated `path._makeLong` in copyFile PR-URL: https://github.com/nodejs/node/pull/50844 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 132a693d05aaa4..3d8c7ba461a713 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -2993,8 +2993,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);