mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 07:26:37 +00:00
Count total file number and storage occupation
This commit is contained in:
@@ -952,3 +952,11 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
|
||||
@searpc_func("object", ["int", "string", "string"])
|
||||
def generate_magic_and_random_key(enc_version, repo_id, password):
|
||||
pass
|
||||
|
||||
@searpc_func("int64", [])
|
||||
def get_total_file_number():
|
||||
pass
|
||||
|
||||
@searpc_func("int64", [])
|
||||
def get_total_storage():
|
||||
pass
|
||||
|
@@ -630,6 +630,12 @@ class SeafileAPI(object):
|
||||
def empty_repo_trash_by_owner(self, owner):
|
||||
return seafserv_threaded_rpc.empty_repo_trash_by_owner(owner)
|
||||
|
||||
def get_total_file_number (self):
|
||||
return seafserv_threaded_rpc.get_total_file_number()
|
||||
|
||||
def get_total_storage (self):
|
||||
return seafserv_threaded_rpc.get_total_storage()
|
||||
|
||||
seafile_api = SeafileAPI()
|
||||
|
||||
class CcnetAPI(object):
|
||||
|
Reference in New Issue
Block a user