提交 93476e01 编写于 作者: H Hou Tianze

Change to streaming upload

上级 3316555e
### Version History:
- 1.5.3: Change to streaming upload
- 1.5.2: Defuse the circular import bomb brought in the previous version...
- 1.5.1: Improve multiprocess (and fix filter() for Python3)
- 1.5.0: Multi-Process for directory download / upload / sync up/down
......
Version History:
~~~~~~~~~~~~~~~~
- 1.5.3: Change to streaming upload
- 1.5.2: Defuse the circular import bomb brought in the previous
version...
- 1.5.1: Improve multiprocess (and fix filter() for Python3)
......
......@@ -1355,7 +1355,8 @@ get information of the given path (dir / file) at Baidu Yun.
pars, self.__upload_slice_act, remotepath,
# want to be proper? properness doesn't work (search this sentence for more occurence)
#files = { 'file' : (os.path.basename(self.__current_file), self.__current_slice) } )
files = { 'file' : ('file', self.__current_slice) } )
#files = { 'file' : ('file', self.__current_slice) } )
data = self.__current_slice )
def __update_progress_entry(self, fullpath):
progress = jsonload(const.ProgressPath)
......@@ -1538,7 +1539,8 @@ get information of the given path (dir / file) at Baidu Yun.
# apperantly, Baidu PCS doesn't use this file name for
# checking / verification, so we are probably safe here.
#files = { 'file' : (os.path.basename(localpath), f) })
files = { 'file' : ('file', f) })
#files = { 'file' : ('file', f) })
data = f)
#TODO: upload empty directories as well?
def __walk_upload(self, localpath, remotepath, ondup, walk):
......
......@@ -12,7 +12,7 @@ import os
# https://packaging.python.org/single_source_version/
__title__ = 'bypy'
__version__ = '1.5.2'
__version__ = '1.5.3'
__author__ = 'Hou Tianze'
__license__ = 'MIT'
__desc__ = 'Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册