當我使用SharpZipLib時出現錯誤。我有看起來像 FastZip compressor = new FastZip();
compressor.CreateZip(outputFileName, currentWorkingDirectory, true, "");
這似乎是正確的。然而,我得到一個ZipException聲稱 size was 0, but I expected 54
下面的代碼工作在我的機器上,但不是在服務器: using (ZipFile zipFile = ZipFile.Create(outPath))
{
if (!includeFolders)
{
zipFile.NameTransform =
new ZipNameTransform(Path.GetDirectoryName(fileNames[