gzip truncating large XML files in under Windows 7/PowerShell?

joselaholla

New Member
I'm using gzip (1.3.12) on Windows 7 as part of a PowerShell script (in development) that processes large XML files (about 100 MB). The script iterates over all of the files, then runs \[code\]gzip -d -v $pathToTheGzipFile\[/code\]. It then does some processing, and then it runs \[code\]gzip -9 -v $pathToTheUnzippedXmlFile\[/code\]. I've run the script dozens of times over many dozen files during development, and I've noticed twice a random file, after decompression, was truncated by a small percentage. The XML parser refused to parse it, and the script failed.I'm not sure if the problem happened during compression or decompression. I've had to kill the script a few times because of different glitches.Has anyone seen this sort of problem with gzip before? Thanks!
 
Back
Top