Merge pull request #79374 from raulsntos/ignore-directories-in-tpz
Ignore directory entries in TPZ
This commit is contained in:
commit
6d2a827f73
|
@ -466,6 +466,13 @@ bool ExportTemplateManager::_install_file_selected(const String &p_file, bool p_
|
||||||
break;
|
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_path(String::utf8(fname).simplify_path());
|
||||||
|
|
||||||
String file = file_path.get_file();
|
String file = file_path.get_file();
|
||||||
|
|
Loading…
Reference in New Issue