Skip to content

Zero length files are ignored #1

@blanknut

Description

@blanknut

I had troubles with zero length files and I think there is an error in method Files() in Container/Jar.cs. As far as I have understood the code, the test "e.Length != 0" is to filter out directories. If this is the case, it's not correct, see:
https://stackoverflow.com/questions/40223451/how-to-tell-if-a-ziparchiveentry-is-directory

This bug results in wrong nonStandardCountCheck's in Verify.cs, see line 131:
if (centralManifest.Entries.Count != nonManifestFiles)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions