From 7372e1c79102bec6a8d126333ed4cf126dbc4d25 Mon Sep 17 00:00:00 2001 From: Vivek Patel Date: Mon, 9 Mar 2020 22:10:12 +0530 Subject: [PATCH] Fixed overwrite functionality when copying large number of files process crashes --- lib/ncp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ncp.js b/lib/ncp.js index 96eed47..a764c4f 100644 --- a/lib/ncp.js +++ b/lib/ncp.js @@ -91,7 +91,7 @@ function ncp (source, dest, options, callback) { return copyFile(file, target); } if(clobber) { - rmFile(target, function () { + return rmFile(target, function () { copyFile(file, target); }); }