question

BitSmithy-4663 avatar image
0 Votes"
BitSmithy-4663 asked BitSmithy-4663 commented

ZipFile trys to zip created himself zip file and trows exception

Hello,


I found and error in ZipFile class
I try tu zip folder using command

             ZipFile.CreateFromDirectory(folderToZip.Path, archiveFilePathAndName);

In the zipped folder i have three files in such sequence:
1file.txt
2file.txt
3.file.txt

Now if newly created zip file has a name in the midst of the sequence, for example:
1file.txt
2file.txt
2zipfile.zip
3.file.txt

Program zips two first files, and next trays to zip newly created zip file, next it raises exception on this operation.
As a result there are ziped only two first files.


Please help.






windows-uwp
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, ZipFile is part of the .Net library, but packaging folders by path is not sufficiently usable in UWP. Did you create a UWP application? Or win32 application?

0 Votes 0 ·

Hello, do you have any other questions about ZipFile?

0 Votes 0 ·

Any updates about this issue? Please feel free to contact us if you have any other questions.

0 Votes 0 ·

If you have any other questions, please feel free to contact us

0 Votes 0 ·

I create an UWP aplication. I create zip in app data folder, so the app has rights to write there. ZipFile generally works, but it probably trays to include to archive himself, and it causes exception. It is probably ZipFile class bug.

0 Votes 0 ·

0 Answers