将文件上传到ftp服务器后检查文件是否损坏 [英] Check files corrupt or not after uploading my files to ftp server

查看:300
本文介绍了将文件上传到ftp服务器后检查文件是否损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi everyone how can i check my files corruptin or no  after uploading my files to ftp server





我尝试了什么:



我试图在谷歌找到但我找不到任何东西



What I have tried:

I have a try to find in google but i cannot find anything

推荐答案

好......



让我们说'n'个文件在一批工作中

当您发送文件时,将其名称,文件大小和SHA1哈希添加到'索引文件'

通过FTP发送'索引文件'



定期或在收到索引文件时,FTP服务器端的进程检查索引中每个文件的索引文件

,它检查文件名,filesize,SHA1#of收到的ie本地ftp'd文件,如果不匹配则生成错误报告



这显然取决于你期望的腐败类型,如果你'不以二进制/图像模式发送文件,那么您可能会遇到问题,你必须考虑你将如何处理'腐败报告'
well ....

lets say 'n' files are in a batch of work
As you are sending the files, add their name, filesize, and SHA1 hash to an 'index file'
Send the 'index file' via FTP

Periodically or on receipt on an index file, a process on the FTP server side inspects the index file
for each file in the index, it checks the filename, filesize, SHA1 # of the received ie local ftp'd file, generating an error report if there is a mismatch

it obviously depends on what type of corruption you're expecting, and if you're not sending the files in binary/image mode, then you may have issues, and you have to think what you're going to do with the 'corruption report'


这篇关于将文件上传到ftp服务器后检查文件是否损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆