1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 15:36:37 +00:00

Add search_files_by_path RPC (#599)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-02-25 11:24:50 +08:00
committed by GitHub
parent 766d716c6a
commit 499e8e8d17
7 changed files with 44 additions and 9 deletions

View File

@@ -817,6 +817,10 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
def search_files(self, repo_id, search_str):
pass
@searpc_func("objlist", ["string", "string", "string"])
def search_files_by_path(self, repo_id, path, search_str):
pass
#user management
@searpc_func("int", ["string", "string", "int", "int"])
def add_emailuser(self, email, passwd, is_staff, is_active):

View File

@@ -856,6 +856,9 @@ class SeafileAPI(object):
def search_files(self, repo_id, search_str):
return seafserv_threaded_rpc.search_files(repo_id, search_str)
def search_files_by_path (self, repo_id, path, search_str):
return seafserv_threaded_rpc.search_files_by_path(repo_id, path, search_str)
seafile_api = SeafileAPI()