diff --git a/docs/home.md b/docs/home.md index e1c42f10379ac38ed06dfa23b7807eb84ff0d84a..6ecf0a469b31435d05f4f76d9bcd3721dbd31da0 100644 --- a/docs/home.md +++ b/docs/home.md @@ -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 diff --git a/src/S3Zip/Properties/AssemblyInfo.cs b/src/S3Zip/Properties/AssemblyInfo.cs index f06f96d3a5c330b800fffea7650ba09d8d440848..8723a5658cf896a9ba0969f76d5f37282eb5a072 100644 --- a/src/S3Zip/Properties/AssemblyInfo.cs +++ b/src/S3Zip/Properties/AssemblyInfo.cs @@ -5,9 +5,9 @@ //------------------------------------------------------------------------------ using System.Reflection; -[assembly: AssemblyTitle("S3Zip")] +[assembly: AssemblyTitle("Coscine.S3Zip")] [assembly: AssemblyCompany("RWTH Aachen University IT Center")] -[assembly: AssemblyProduct("S3Zip")] +[assembly: AssemblyProduct("Coscine.S3Zip")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0.0")]