未验证 提交 072e59e4 编写于 作者: S shenchucheng 提交者: GitHub

Fix __proceed_remote_gather() MD5 inconsistency (#530)

修改ByPy的__proceed_remote_gather函数,修复重复上传已存在文件的问题 (#530)
上级 ecc0a8f8
......@@ -2599,7 +2599,11 @@ restore a file from the recycle bin
for f in filejs:
self.__remote_dir_contents.get(remotepath[rootlen:]).add(
f['path'][dlen:], PathDictTree('F', size = f['size'], md5 = f['md5']))
f['path'][dlen:], PathDictTree('F', size = f['size'], md5 = f['block_list'][0]))
# 网盘和本地文件相同,但本地文件md5与网盘获取到的md5值却不一致
# 与之对应的是在block_list列表中的值
# 此处修改后可实现增量上传,compare函数运行结果才是正确的
# f['path'][dlen:], PathDictTree('F', size = f['size'], md5 = f['md5']))
return walkresult
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册