1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 23:19:36 +00:00

Add byte-range upload.

This commit is contained in:
ly1217
2019-02-19 01:18:31 -08:00
parent 5c8c640142
commit d851199f06
10 changed files with 671 additions and 81 deletions

View File

@@ -989,6 +989,11 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
def get_trash_repo_owner(repo_id):
pass
@searpc_func("int64", ["string", "string"])
def seafile_get_upload_tmp_file_offset(repo_id, file_path):
pass
get_upload_tmp_file_offset = seafile_get_upload_tmp_file_offset
@searpc_func("int", ["string", "string", "string", "string"])
def seafile_mkdir_with_parents (repo_id, parent_dir, relative_path, username):
pass

View File

@@ -383,6 +383,9 @@ class SeafileAPI(object):
def check_repo_blocks_missing(self, repo_id, blklist):
return seafserv_threaded_rpc.check_repo_blocks_missing(repo_id, blklist)
def get_upload_tmp_file_offset (self, repo_id, file_path):
return seafserv_threaded_rpc.get_upload_tmp_file_offset (repo_id, file_path)
# file lock
def check_file_lock(self, repo_id, path, user):
"""