/src/CleanZip.Core/ZipTarget.cs
https://bitbucket.org/jens13/cleanzip · C# · 24 lines · 16 code · 4 blank · 4 comment · 0 complexity · a13b4c9d0ac5b11233edc4c64053c3e8 MD5 · raw file
- // Copyright Jens Granlund 2012.
- // Distributed under the New BSD License.
- // (See accompanying file notice.txt or at
- // http://www.opensource.org/licenses/bsd-license.php)
- using CleanZip.Compression;
- namespace CleanZip
- {
- public class ZipTarget : ITarget
- {
- private readonly string _fileName;
- public ZipTarget(string fileName)
- {
- _fileName = fileName;
- }
- public IArchive CreateArchive()
- {
- return new ZipArchive(ZipFile.Open(_fileName));
- }
- }
- }