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
{{ message }}
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
I have the following code that is trying to add files from a FileOpenPicker to an existing zip archive
... var sFiles = await pickerFiles.PickMultipleFilesAsync(); List<string> files = new List<string>(); foreach (StorageFile entry in sFiles) { files.Add(entry.Path); } SevenZipBase.SetLibraryPath(@"C:\Libs\7z.dll"); SevenZipCompressor cp = new SevenZip.SevenZipCompressor(); string fName = @"\C:\Users\matte\desktop\test.zip"; cp.CompressFiles(fName, files.ToArray()); Debug.WriteLine("Check archive NOW!"); ...
I'd expected the new files to be added to those already in test.zip but I get a truly new archive holding just the lately added files.
It seems that SevenZipCompressor is always open the archive file in Create mode only every time.
Am I missing anything?
The text was updated successfully, but these errors were encountered:
I have the following code that is trying to add files from a FileOpenPicker to an existing zip archive
... var sFiles = await pickerFiles.PickMultipleFilesAsync(); List<string> files = new List<string>(); foreach (StorageFile entry in sFiles) { files.Add(entry.Path); } SevenZipBase.SetLibraryPath(@"C:\Libs\7z.dll"); SevenZipCompressor cp = new SevenZip.SevenZipCompressor(); string fName = @"\C:\Users\matte\desktop\test.zip"; cp.CompressFiles(fName, files.ToArray()); Debug.WriteLine("Check archive NOW!"); ...
I'd expected the new files to be added to those already in test.zip but I get a truly new archive holding just the lately added files.
It seems that SevenZipCompressor is always open the archive file in Create mode only every time.
Am I missing anything?
The text was updated successfully, but these errors were encountered: