You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi and thanks for the very useful utility. I am using it to manipulate .idml files which are compressed folders for adobe indesign files. Extracting a file from the directory works just fine.
My goal is to replace a file in the directory. To do this I figures I should first remove the entry and then add a new one.
I am facing a problem when trying to remove an entry. After executing RemoveEntries(), the entry is still there. I can check because after running, the number of entries didn't change. However, RemoveEntries() is returning true every time.
ZipStorerzip= ZipStorer.Open(idmlPath, FileAccess.Write);List<ZipStorer.ZipFileEntry>removeList=newList<ZipStorer.ZipFileEntry>();// Look for the desired file to replaceforeach(ZipStorer.ZipFileEntry entry in zip.ReadCentralDir()){if(Path.GetFileName(entry.FilenameInZip)== Path.GetFileName(archivePath)){
removeList.Add(entry);}}if(removeList.Count >0){boolresult= ZipStorer.RemoveEntries(ref zip, removeList);}
zip.Close();
not sure if this is a bug or I am doing something wrong. Assuming that the ZipStorer object should be opened with write access.
The text was updated successfully, but these errors were encountered:
hi and thanks for the very useful utility. I am using it to manipulate .idml files which are compressed folders for adobe indesign files. Extracting a file from the directory works just fine.
My goal is to replace a file in the directory. To do this I figures I should first remove the entry and then add a new one.
I am facing a problem when trying to remove an entry. After executing
RemoveEntries()
, the entry is still there. I can check because after running, the number of entries didn't change. However,RemoveEntries()
is returningtrue
every time.not sure if this is a bug or I am doing something wrong. Assuming that the
ZipStorer
object should be opened with write access.The text was updated successfully, but these errors were encountered: