Skip to content

Commit

Permalink
Fixed --pack not working when target path's folder already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
SydMontague committed Feb 29, 2020
1 parent 94274e3 commit 53d4125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DSCSTools/MDB1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void packMDB1(const boost::filesystem::path source, const boost::filesystem::pat
return;
}

if (!boost::filesystem::exists(target.parent_path()))
if (!boost::filesystem::exists(target))
boost::filesystem::create_directories(target.parent_path());
else if (!boost::filesystem::is_regular_file(target)) {
std::cout << "Error: target path already exists and is not a file." << std::endl;
Expand Down

0 comments on commit 53d4125

Please sign in to comment.