Skip to content

Lists zip file content on Amazon Web Services S3 service without downloading whole document. Supports both zip and zip64 files.

License

Notifications You must be signed in to change notification settings

hkutluay/ZipContent.S3

Repository files navigation

ZipContent.S3

build & test

Lists zip file content on Amazon Web Services S3 service without downloading whole document. Supports both zip and zip64 files.

Usage

First install ZipContent.S3 via NuGet console:

PM> Install-Package ZipContent.S3

Sample usage:

string bucket = "test";
string key = "foo.zip";

IAmazonS3 s3 = new AmazonS3Client();

IPartialFileReader partialReader = new S3PartialFileReader(s3, bucket, key);

IZipContentLister lister = new ZipContentLister(partialReader);

var contentList = await lister.GetContents();

foreach (var content in contentList)
   Console.WriteLine(item.FullName);

Before 1.2.0 version:

string bucket = "test";
string key = "foo.zip";

IAmazonS3 s3 = new AmazonS3Client();

IPartialFileReader partialReader = new S3PartialFileReader(s3, bucket, key);

IZipContentLister lister = new ZipContentLister();

var contentList = await lister.GetContents(partialReader);

foreach (var content in contentList)
   Console.WriteLine(item.FullName);

About

Lists zip file content on Amazon Web Services S3 service without downloading whole document. Supports both zip and zip64 files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages