//파일을 zip엔트리에 추가
zip.AddEntry (dir + filename, file.OpenReadStream ());
}
+
+ if (!Directory.Exists(Environment.CurrentDirectory+"/wwwroot/zipfiles/")){
+ Directory.CreateDirectory(Environment.CurrentDirectory+"/wwwroot/zipfiles/");
+ }
+
zip.Save (path);
}
}
<Folder Include="Views\WebZip\" />\r
<Folder Include="wwwroot\Language\" />\r
<Folder Include="wwwroot\js\Zip\" />\r
+ <Folder Include="wwwroot\zipfiles\" />\r
</ItemGroup>\r
<ItemGroup>\r
<Content Remove="wwwroot\js\Zip\example.ts" />\r