Changes
Page history
Docs: Documentation Update
authored
Jun 19, 2019
by
RWTHApp Service
Show whitespace changes
Inline
Side-by-side
home.md
View page @
d89286c9
...
...
@@ -4,8 +4,21 @@ The allows to zip a folder and/or upload a whole stream in chunks to a S3 object
For example:
```
var zipUtilities = new ZipUtilities(_s3MultipartStreamConfiguration);
// uploading
var zipUtilities = new ZipUtilities(s3MultipartStreamConfiguration);
zipUtilities.ZipAndUploadFolder(@"c:\temp\test", "test.zip");
```
```
// downloading
var zipUtilities = new ZipUtilities(_s3MultipartStreamConfiguration);
using (var s3MultipartDownloadStream = new S3MultipartDownloadStream(key, s3MultipartStreamConfiguration))
{
using (var archive = new ZipArchive(s3MultipartDownloadStream, ZipArchiveMode.Read, true))
{
zipUtilities.UnzipToFolder(archive, @"c:\temp\test2\");
}
}
```
A zip file of the folder will be in S3 under the key test.zip.
\ No newline at end of file