mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
misc: make export directory creation recursive
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user