From e873f1bf5f7b701c857dbac52d4e859975c63db6 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 bce9d38026169c..59724e884e6dbe 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -3001,8 +3001,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);