mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
misc: make export directory creation recursive
This commit is contained in:
@@ -54,10 +54,11 @@ String get_export_full_path(String& rel_name) {
|
||||
return fn.GetFullPath();
|
||||
}
|
||||
|
||||
void ensure_dir_valid(String& path) {
|
||||
wxFileName filename = path;
|
||||
if (!filename.DirExists())
|
||||
filename.Mkdir();
|
||||
void ensure_dir_valid(String& path) {
|
||||
if (!wxDirExists(path)) {
|
||||
wxFileName filename = path;
|
||||
filename.Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : HTML
|
||||
|
||||
Reference in New Issue
Block a user