You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZIPReader cannot open empty zip files.
When trying to open an empty zip file, a very generic error FAILED (1) is returned, if opening an empty zip file should fail, the returned error code should at least be more specific.
The issue is probably related to no file index in an empty zip file.
Steps to reproduce
For convenience, empty.zip and not_empty.zip are created in user:// , with an empty text file in not_empty.zip
func _ready() -> void:
var zip := ZIPReader.new();
var error := zip.open("user://empty.zip");
print(error_string(error)); # -> FAILED
var error2 := zip.open("user://not_empty.zip");
print(error_string(error2)); # -> OK
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Godot version
4.0.rc1
System information
Windows 10
Issue description
ZIPReader cannot open empty zip files.
When trying to open an empty zip file, a very generic error FAILED (1) is returned, if opening an empty zip file should fail, the returned error code should at least be more specific.
The issue is probably related to no file index in an empty zip file.
Steps to reproduce
For convenience, empty.zip and not_empty.zip are created in user:// , with an empty text file in not_empty.zip
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: