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

Add rpc mkdir_with_parents()

This commit is contained in:
“cuihaikuo”
2017-08-14 10:59:08 +08:00
parent 62023c10a3
commit cf19311a0d
5 changed files with 41 additions and 0 deletions

View File

@@ -968,3 +968,8 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
@searpc_func("string", ["string"])
def get_trash_repo_owner(repo_id):
pass
@searpc_func("int", ["string", "string", "string", "string"])
def seafile_mkdir_with_parents (repo_id, parent_dir, relative_path, username):
pass
mkdir_with_parents = seafile_mkdir_with_parents

View File

@@ -678,6 +678,9 @@ class SeafileAPI(object):
def get_trash_repo_owner (self, repo_id):
return seafserv_threaded_rpc.get_trash_repo_owner(repo_id)
def mkdir_with_parents (self, repo_id, parent_dir, relative_path, username):
return seafserv_threaded_rpc.mkdir_with_parents(repo_id, parent_dir, relative_path, username)
seafile_api = SeafileAPI()
class CcnetAPI(object):