summaryrefslogtreecommitdiffstats
path: root/editor/export/export_template_manager.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-24 14:07:30 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-24 14:07:30 +0100
commit6d2a827f735a4a39034269cc91546575cf26802f (patch)
tree2874d12bfc94fe378b83d37118537fa7e0b8ff10 /editor/export/export_template_manager.cpp
parent74c32faa78b54863f8f25c538083907c2bf71791 (diff)
parent59a5a1eb70dc02bec4a6462d36ef6a0daaa8694e (diff)
downloadredot-engine-6d2a827f735a4a39034269cc91546575cf26802f.tar.gz
Merge pull request #79374 from raulsntos/ignore-directories-in-tpz
Ignore directory entries in TPZ
Diffstat (limited to 'editor/export/export_template_manager.cpp')
-rw-r--r--editor/export/export_template_manager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/export/export_template_manager.cpp b/editor/export/export_template_manager.cpp
index 69ad076f8a..1491adee52 100644
--- a/editor/export/export_template_manager.cpp
+++ b/editor/export/export_template_manager.cpp
@@ -466,6 +466,13 @@ bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_
break;
}
+ if (String::utf8(fname).ends_with("/")) {
+ // File is a directory, ignore it.
+ // Directories will be created when extracting each file.
+ ret = unzGoToNextFile(pkg);
+ continue;
+ }
+
String file_path(String::utf8(fname).simplify_path());
String file = file_path.get_file();