Open appt2 opened 8 months ago
Zip files contains file names with paths. The real file name is the substring after the last '/'. Your code treats output entry list incorrectly.
Zip files contains file names with paths. The real file name is the substring after the last '/'. Your code treats output entry list incorrectly.
So how can I fix this problem?
When fileName
ends with /
- this is a folder. I.e. zipEntry
is not a zip file but a folder.
When fileName
does not end with '/' and contain /
- it means that this zipEntry
is a file with given path (including subfolders).
Just remember, that zip file contains a list of zipEntry
. Each zipEntry
can be either a file
or a folder
, i.e. a file with zero length.
When
fileName
ends with/
- this is a folder. I.e.zipEntry
is not a zip file but a folder. WhenfileName
does not end with '/' and contain/
- it means that thiszipEntry
is a file with given path (including subfolders)
I did not understand, can you give a code example?
When
fileName
ends with/
- this is a folder. I.e.zipEntry
is not a zip file but a folder. WhenfileName
does not end with '/' and contain/
- it means that thiszipEntry
is a file with given path (including subfolders)I did not understand, can you give a code example?
Give me a link to your zip file
When
fileName
ends with/
- this is a folder. I.e.zipEntry
is not a zip file but a folder. WhenfileName
does not end with '/' and contain/
- it means that thiszipEntry
is a file with given path (including subfolders)I did not understand, can you give a code example?
Give me a link to your zip file
I don't have a zip file right now
Hello, I use your library to get the list of compressed files, but as you can see in the picture, the path of the files is displayed strangely, what is the solution?