1
0
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:
cuihaikuo
2016-12-30 16:57:33 +08:00
parent f654d77ee9
commit 90fb2b8515
7 changed files with 103 additions and 0 deletions

View File

@@ -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

View File

@@ -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):