Skip to content

Commit

Permalink
Create also non-existing parent directories
Browse files Browse the repository at this point in the history
  • Loading branch information
StefWe authored and FlorentRevest committed Jul 28, 2020
1 parent a04f485 commit 96126da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asteroidsyncservice/watch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void Watch::setScreenshotFileInfo(const QString fileInfo)
bool Watch::createDir(const QDir path)
{
if(!path.exists()) {
return path.mkdir(path.path());
return path.mkpath(path.path());
} else {
return true;
}
Expand Down

0 comments on commit 96126da

Please sign in to comment.