Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloaderZip"/> class.
 /// </summary>
 public DownloaderZip(
     IIO io,
     Config config,
     ITransport transport,
     IEventDispatcher eventDispatcher = null,
     ICache cache             = null,
     IFileSystem fileSystem   = null,
     IProcessExecutor process = null)
     : base(io, config, transport, eventDispatcher, cache, fileSystem)
 {
     extractor = new ExtractorZip(io, GetFileSystem(), process ?? new BucketProcessExecutor(io));
 }
Beispiel #2
0
        /// <summary>
        /// Unzip the file to the specified path.
        /// </summary>
        protected virtual void ExtractorZip(string file, string extractPath)
        {
            var extractor = new ExtractorZip(GetIO(), fileSystem);

            extractor.Extract(file, extractPath);
        }