1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

unzip: Add option to list files of an archive

This commit is contained in:
Romain Chardiny 2023-05-21 17:48:52 +02:00 committed by Sam Atkins
parent a9a62ad8c9
commit dc65a2f2b8
3 changed files with 28 additions and 3 deletions

View file

@ -253,7 +253,7 @@ struct ZipMember {
class Zip {
public:
static Optional<Zip> try_create(ReadonlyBytes buffer);
ErrorOr<bool> for_each_member(Function<IterationDecision(ZipMember const&)>);
ErrorOr<bool> for_each_member(Function<ErrorOr<IterationDecision>(ZipMember const&)>);
private:
static bool find_end_of_central_directory_offset(ReadonlyBytes, size_t& offset);