|
@@ -72,8 +72,9 @@ class ConfigField:
|
|
|
|
|
|
func _on_import_perform_button_down() -> void:
|
|
func _on_import_perform_button_down() -> void:
|
|
var full_output_path := ProjectSettings.globalize_path($output_path.text)
|
|
var full_output_path := ProjectSettings.globalize_path($output_path.text)
|
|
- OS.move_to_trash(full_output_path)
|
|
|
|
- DirAccess.make_dir_absolute(full_output_path)
|
|
|
|
|
|
+ if DirAccess.dir_exists_absolute(full_output_path):
|
|
|
|
+ OS.move_to_trash(full_output_path)
|
|
|
|
+ DirAccess.make_dir_recursive_absolute(full_output_path)
|
|
_setup_task(func():
|
|
_setup_task(func():
|
|
var dir_access := DirAccess.open($config_path.text)
|
|
var dir_access := DirAccess.open($config_path.text)
|
|
for config_type in dir_access.get_directories():
|
|
for config_type in dir_access.get_directories():
|