Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to estimate the compressed file is unbroken? #30

Open
sheepyuanyang opened this issue Jul 20, 2021 · 1 comment
Open

How to estimate the compressed file is unbroken? #30

sheepyuanyang opened this issue Jul 20, 2021 · 1 comment

Comments

@sheepyuanyang
Copy link

sheepyuanyang commented Jul 20, 2021

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文件是否完整呢?

@huangdl123
Copy link

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不一致的情况,命令行窗口也会有相应的警告打印信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants