diff --git a/acacore/models/file.py b/acacore/models/file.py index 483ffb1..6363284 100644 --- a/acacore/models/file.py +++ b/acacore/models/file.py @@ -131,6 +131,10 @@ def get_checksum(self) -> str: self.checksum = file_checksum(self.get_absolute_path(self.root)) return self.checksum + def get_size(self) -> int: + self.size = self.get_absolute_path(self.root).stat().st_size + return self.size + @property def name(self) -> str: """