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:
@@ -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):
|
||||
|
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user