ZipFile trys to zip created himself zip file and trows exception

BitSmithy 1,951 Reputation points
2020-02-01T21:52:04.947+00:00

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.

Universal Windows Platform (UWP)
{count} votes