ZipFile.CreateFromDirectory() looks like working, but zip file size is smaller than expected one.

WB_78 0 Reputation points
2023-01-25T12:38:18.48+00:00

Hi, I made a C# progrm which make a zip file, and save it to spedific folder on another drive.

Yes, it's back up program.

Zipping is taken in another independent thread.

My program created zip file when the time is on my setup exactly.

Problem is that some data is missed.

If target foler has 14files, and total is 12MB.

When I unzip the created file, it has 14 files, but totla is not 12MB.

Total is 9MB something.

Is there anyone who have simmaler issue I have?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,022 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
639 questions
{count} votes