summaryrefslogtreecommitdiffstats
path: root/platform/osx/export/export_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-12-02 17:34:45 +0100
committerGitHub <noreply@github.com>2021-12-02 17:34:45 +0100
commit892a5a72cd9b25dc660671b9f4244fd842884b9f (patch)
treefb410b4b5daa1e8a79dc9f7983c43bcd9b196e8f /platform/osx/export/export_plugin.cpp
parent11d5b91462285d9fc541c20331aedcd4511908cd (diff)
parent7da392bcc52366740394322728464e724cf20cdf (diff)
downloadredot-engine-892a5a72cd9b25dc660671b9f4244fd842884b9f.tar.gz
Merge pull request #55474 from akien-mga/copy-operators-no-reference
Diffstat (limited to 'platform/osx/export/export_plugin.cpp')
-rw-r--r--platform/osx/export/export_plugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/osx/export/export_plugin.cpp b/platform/osx/export/export_plugin.cpp
index a88f7bb332..36a2e5e205 100644
--- a/platform/osx/export/export_plugin.cpp
+++ b/platform/osx/export/export_plugin.cpp
@@ -960,9 +960,10 @@ void EditorExportPlatformOSX::_zip_folder_recursive(zipFile &p_zip, const String
DirAccessRef da = DirAccess::open(dir);
da->list_dir_begin();
- String f;
- while ((f = da->get_next()) != "") {
+ String f = da->get_next();
+ while (!f.is_empty()) {
if (f == "." || f == "..") {
+ f = da->get_next();
continue;
}
if (da->is_link(f)) {
@@ -1065,6 +1066,7 @@ void EditorExportPlatformOSX::_zip_folder_recursive(zipFile &p_zip, const String
zipCloseFileInZip(p_zip);
}
+ f = da->get_next();
}
da->list_dir_end();
}