misc: make export directory creation recursive

This commit is contained in:
Brendan Hagan
2022-11-18 21:58:33 -05:00
parent d9f79ef99b
commit 5ba9a33e18
+4 -3
View File
@@ -55,9 +55,10 @@ String get_export_full_path(String& rel_name) {
} }
void ensure_dir_valid(String& path) { void ensure_dir_valid(String& path) {
wxFileName filename = path; if (!wxDirExists(path)) {
if (!filename.DirExists()) wxFileName filename = path;
filename.Mkdir(); filename.Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
}
} }
// ----------------------------------------------------------------------------- : HTML // ----------------------------------------------------------------------------- : HTML