NVHTarGzip icon indicating copy to clipboard operation
NVHTarGzip copied to clipboard

sync unGzipFileAtPath-Method never reports a NSError

Open flandy84 opened this issue 9 years ago • 5 comments

tested with not-available source file and a currupt/wrong (no gzip) source file --> no NSError is delivered, but a 0-Byte destination-File will be created.

seems to be an issue?!

flandy84 avatar Mar 11 '15 16:03 flandy84

Probably related to #4?

nvh avatar Mar 12 '15 19:03 nvh

maybe related?! but in my case there is no crash, only missing error-reporting, and the leaving 0-Byte-destination File in the second case.

are you planning a fix/new release ?

flandy84 avatar Mar 16 '15 12:03 flandy84

Just merged it in and released a new version. Let me know if it fixes your problem

nvh avatar Mar 16 '15 14:03 nvh

no sorry, both problems still exists.

  1. if source file ist not-available on filesystem --> No NSError is reported and a 0-Byte destination File is created.
  2. if source-file is NOT Gzipped --> No NSError is reported

Tested with unGzipFileAtPath method

flandy84 avatar Mar 17 '15 11:03 flandy84

Same problem here, tried using unGzipFileAtPath on a corrupted gzip file with no error reported, and there's no files in the output path.

Tried on a proper gzip file and manage to get the output.

iori57 avatar Jun 16 '15 06:06 iori57