public async Task UnZip() { var path1 = Path.Combine( CommonHelper.MapPath(_packStoreOptions.TempStorePath), "zip"); var path2 = Path.Combine( CommonHelper.MapPath(_packStoreOptions.TempStorePath), "extract"); MonitorZipFileHelper.UnFromDirectory(path1, path2); await Task.CompletedTask; }
public async Task Zip() { var path = Path.Combine( CommonHelper.MapPath(_packStoreOptions.TempStorePath), "zip", $"{CommonHelper.NewSequentialGuid().ToString()}.zip"); MonitorZipFileHelper.CreateFromDirectory( CommonHelper.MapPath(_packStoreOptions.TempStorePath), path, true); await Task.CompletedTask; }