App: make sure to create parent directories of a document's transient directory

This commit is contained in:
wmayer
2022-03-19 13:58:10 +01:00
parent 25bae6343b
commit b84e41bc89

View File

@@ -1478,7 +1478,7 @@ void Document::onChanged(const Property* prop)
this->TransientDir.setValue(new_dir);
}
else {
if (!TransDirNew.createDirectory())
if (!TransDirNew.createDirectories())
Base::Console().Warning("Failed to create '%s'\n", new_dir.c_str());
else
this->TransientDir.setValue(new_dir);