1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-08 10:48:52 +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

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