Update main.cpp
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -176,6 +176,7 @@ void ExtractArchive(const std::filesystem::path& archive) {
|
||||
if (!GetConfirmation("File " + entry.first.string() + " already exists, overwrite?"))
|
||||
continue;
|
||||
|
||||
std::filesystem::create_directories(std::filesystem::current_path() / entry.first.parent_path());
|
||||
if (!WriteFileToDisk(ReArchive::ReadFile(archive, entry.first),std::filesystem::current_path() / entry.first))
|
||||
std::cerr << "The path for writing is inaccessible." << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user