Fix cannot save files on this folder
This commit is contained in:
parent
41a5af110e
commit
58150a65fe
|
@ -19,7 +19,10 @@ namespace carla {
|
|||
}
|
||||
path += ext;
|
||||
}
|
||||
fs::create_directories(path.parent_path());
|
||||
auto parent = path.parent_path();
|
||||
if (!parent.empty()) {
|
||||
fs::create_directories(parent);
|
||||
}
|
||||
filepath = path.string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue