dotnet / android-libzipsharp

A managed wrapper (and then some) around libzip (https://libzip.org/)
MIT License
30 stars 12 forks source link

Fixed an issue where IsDirectory was returning false for directories. #19

Closed dellis1972 closed 8 years ago

dellis1972 commented 8 years ago

This is because while the Size is 0 the compressed size is NOT 0. This is probably because the data has to be stored somehow in the zip :).

So for directories we'll check that the Size is zero and that the string ends in a '/'