Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
当 同步当前目录成功后, 紧接着立即再同步一次,报错:
Traceback (most recent call last):
File "/root/bypy.py", line 2503, in
main()
File "/root/bypy.py", line 2463, in main
result = getattr(by, args.command[0])(*uargs)
File "/root/bypy.py", line 1493, in upload
return self.__upload_dir(lpath, rpath, ondup)
File "/root/bypy.py", line 1428, in __upload_dir
os.path.walk(localpath, self.__walk_upload, (localpath, remotepath, ondup))
File "/root/GreenOpenERP-8.0-latest-linux-x64/python/bin/../../python/lib/python2.7/posixpath.py", line 238, in walk
func(arg, top, names)
File "/root/bypy.py", line 1417, in __walk_upload
if subresult == ENoError and self.__verify_current_file(self.__remote_json, False):
File "/root/bypy.py", line 1121, in __verify_current_file
self.pd("Local file size : {}".format(self.__current_file_size))
AttributeError: 'ByPy' object has no attribute '_ByPy__current_file_size'