Skip to content
Snippets Groups Projects
Commit 3f0d656e authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Merge branch 'Product/94-conventions' into 'master'

Refactoring related to coscine/issues#100

See merge request coscine/cs/s3zip!3
parents 189b5143 acb48b03
No related branches found
No related tags found
1 merge request!3Refactoring related to coscine/issues#100
...@@ -4,8 +4,21 @@ The allows to zip a folder and/or upload a whole stream in chunks to a S3 object ...@@ -4,8 +4,21 @@ The allows to zip a folder and/or upload a whole stream in chunks to a S3 object
For example: For example:
``` ```
var zipUtilities = new ZipUtilities(_s3MultipartStreamConfiguration); // uploading
var zipUtilities = new ZipUtilities(s3MultipartStreamConfiguration);
zipUtilities.ZipAndUploadFolder(@"c:\temp\test", "test.zip"); 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. A zip file of the folder will be in S3 under the key test.zip.
\ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
using System.Reflection; using System.Reflection;
[assembly: AssemblyTitle("S3Zip")] [assembly: AssemblyTitle("Coscine.S3Zip")]
[assembly: AssemblyCompany("RWTH Aachen University IT Center")] [assembly: AssemblyCompany("RWTH Aachen University IT Center")]
[assembly: AssemblyProduct("S3Zip")] [assembly: AssemblyProduct("Coscine.S3Zip")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0.0")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment