We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
overwrite_existing
1 parent 521e623 commit 22db493Copy full SHA for 22db493
swift/extractor/SwiftExtractor.cpp
@@ -41,12 +41,12 @@ static void archiveFile(const SwiftExtractorConfiguration& config, swift::Source
41
ensureDirectory("source archive destination", dstFilePath.parent_path());
42
43
std::error_code ec;
44
- fs::copy(srcFilePath, dstFilePath, ec);
+ fs::copy(srcFilePath, dstFilePath, fs::copy_options::skip_existing, ec);
45
46
if (ec) {
47
- std::cerr << "Cannot archive source file " << srcFilePath << " -> " << dstFilePath
48
- << "': " << ec.message() << "\n";
49
- return;
+ std::cerr << "Cannot archive source file " << srcFilePath << " -> " << dstFilePath << ": "
+ << ec.message() << "\n";
+ std::abort();
50
}
51
52
0 commit comments