documentation(services): move the storage count docstring to parent service class

pull/35/head
Houkime 2023-04-17 14:18:44 +00:00 committed by Inex Code
parent f5de4974e7
commit 34854b5118
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ class Service(ABC):
@classmethod
def get_storage_usage(cls) -> int:
"""
Calculate the real storage usage of folders occupied by service
Calculate using pathlib.
Do not follow symlinks.
"""
storage_used = 0
for folder in cls.get_folders():
storage_used += get_storage_usage(folder)