gtz icon indicating copy to clipboard operation
gtz copied to clipboard

How to estimate the compressed file is unbroken?

Open sheepyuanyang opened this issue 3 years ago • 1 comments

For example, if I was compressing a file A.fq.gz to A.fq.gz.gtz. Unfortunately, there was a problem so that the work was not finished in normal condition. Then the A.fq.gz.gtz was still created and we can't judge if it is full from the file size. Is there any tools to let me know if the compressed file is full?

假如我用gtz压缩一个文件,快结束时候断掉了,但是我不知道,而.gtz的文件也已经生成了,虽然还没结束,但是大小也接近正常大小了。那我如何检测这个gtz文件是否完整呢?

sheepyuanyang avatar Jul 20 '21 13:07 sheepyuanyang

You can try to decompress the gtz file. Gtz software will compare the md5 when decompressing. If it can decompress the origin file, you can judge the file is OK.

可以通过试着解压文件,如果能够得到原始的文件,则可认为gtz文件是完整的。 同时,在解压文件过程中,如果有md5不一致的情况,命令行窗口也会有相应的警告打印信息。

huangdl123 avatar Jul 21 '21 00:07 huangdl123