This project is read-only.

First char of compressed file is lost

Feb 8, 2011 at 12:51 PM
Edited Feb 8, 2011 at 12:54 PM

I'm using the SevenZipSHarp library and it's working really well, except for one detail...

I have a folder with several ".pdf" files and a ".csv" file so I use the CompressDirectory method to compress all those files to a determined file output (LMZA format).

The method creates the compressed file correctly but my original file names lose their first character.

For example, if I have a file in the directory named "605001662531.pdf" in the compressed file will be "05001662531.pdf".


Any ideas?


Thanks in advance!

Dec 1, 2011 at 12:22 PM

This drove me absolutely crazy until I compared the settings in a comparison application.

It turned out that I had a blankspace before the file I was trying to add. This caused the first characters to be removed.