App: make sure to create parent directories of a document's transient directory
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user