示例#1
0
        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;
        }
示例#2
0
        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;
        }