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
I have a zip with multiple entries, I want to check to make sure this zip is totally decompress by compare its entries count and the total files in decompress directory. But Archive doesn't support to get count without loading all of entries.
At this time I have to load all entries to the sorted list to only get the files count like this:
let sortedEntries = archive.sorted(by: { $0.path < $1.path })
let count = sortedEntries.count
if count == destinationDirFiles.count {
// the uncompress process is done
}
But the problem is that it's very slow because I have about 25k entries in the zip.
Could you please add the count into Archive when loading it?
And I'd be great if you can support to access entry by index along with the Sequence
The text was updated successfully, but these errors were encountered:
I have a zip with multiple entries, I want to check to make sure this zip is totally decompress by compare its entries count and the total files in decompress directory. But
Archive
doesn't support to get count without loading all of entries.At this time I have to load all entries to the sorted list to only get the files count like this:
But the problem is that it's very slow because I have about 25k entries in the zip.
Could you please add the count into
Archive
when loading it?And I'd be great if you can support to access entry by index along with the
Sequence
The text was updated successfully, but these errors were encountered: