ZipFile trys to zip created himself zip file and trows exception
BitSmithy
2,141
Reputation points
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.
Sign in to answer