Skip to content

Add support for AES compression #110

Description

@SravanPeddi

Hi Team,

I want to read one file from zip(which has password) folder without unzip/exract it. I am using following snippet.

UZKArchive *archive = [[UZKArchive alloc] initWithPath:zipPath password:@"49445" error:&archiveError];
NSError *error = nil;
NSArray<NSString*> *filesInArchive = [archive listFilenames:&error];
NSLog(@"filesInArchive %@",filesInArchive);
for(UZKFileInfo *info in [archive listFileInfo:&error])
{
    NSLog(@"file name %@ Compressed size %lld UnCompressed size %lld",info.filename,info.compressedSize,info.uncompressedSize);
}

I have a file in zip folder named "complete_49445_ak_pc_6922/49445.json"

NSData *extractedData = [archive extractDataFromFile:@"complete_49445_ak_pc_6922/49445.json" error:&error];

here i extracted data is coming as null.

i would like to read one file content based on that file content i would like to extract files.
How can we do that ?

i am able to get contents if zip is not having password. But I am facing issue if zip is having password only, though i have provided password for archive object.

Thanks,
Sravan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions