Skip to content

Commit 0e7fab7

Browse files
use none flag instead of unnecessary skip_existing
1 parent b1ef7f2 commit 0e7fab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ static void CpSyncOverrideFile(const FunctionCallbackInfo<Value>& args) {
33913391
if (mode == 0) {
33923392
// if no mode is specified use the faster std::filesystem API
33933393
std::filesystem::copy_file(
3394-
*src, *dest, std::filesystem::copy_options::skip_existing, error);
3394+
*src, *dest, std::filesystem::copy_options::none, error);
33953395
if (error) {
33963396
return env->ThrowError(error.message().c_str());
33973397
}

0 commit comments

Comments
 (0)