mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 15:36:37 +00:00
Add batch del files RPC (#694)
* Add batch del files RPC * Add pack multi-level files * Go add pack multi-level files * Use change set to batch del files * Improve args --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -126,6 +126,11 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
|
||||
pass
|
||||
del_file = seafile_del_file
|
||||
|
||||
@searpc_func("int", ["string", "string", "string"])
|
||||
def seafile_batch_del_files(repo_id, filepaths, user):
|
||||
pass
|
||||
batch_del_files = seafile_batch_del_files
|
||||
|
||||
@searpc_func("object", ["string", "string", "string", "string", "string", "string", "string", "int", "int"])
|
||||
def seafile_copy_file(src_repo, src_dir, src_filename, dst_repo, dst_dir, dst_filename, user, need_progress, synchronous):
|
||||
pass
|
||||
|
@@ -300,6 +300,9 @@ class SeafileAPI(object):
|
||||
def del_file(self, repo_id, parent_dir, filename, username):
|
||||
return seafserv_threaded_rpc.del_file(repo_id, parent_dir, filename, username)
|
||||
|
||||
def batch_del_files(self, repo_id, filepaths, username):
|
||||
return seafserv_threaded_rpc.batch_del_files(repo_id, filepaths, username)
|
||||
|
||||
'''
|
||||
If you want to move or copy multiple files in a batch, @src_filename and @dst_filename
|
||||
should be json array, make sure the number of files
|
||||
|
Reference in New Issue
Block a user