diff --git a/csppfetch/__init__.py b/csppfetch/__init__.py index 3d041db15d07c81371953f94056ab23681c1cc96..f787572bd7beaed00265e649c7ac80ad1c5db4d7 100644 --- a/csppfetch/__init__.py +++ b/csppfetch/__init__.py @@ -105,6 +105,14 @@ class DownloadStatistics: self.deleted_files = 0 self.deleted_size = 0 + def __str__(self): + return (f"Downloaded {self.downloaded_files} files " + f"totalling {self.downloaded_size} bytes. " + f"Pulled {self.cache_hits} files from cache, " + f"saving {self.cache_size} bytes of download. " + f"Deleted {self.deleted_files} files, " + f"freeing {self.deleted_size} bytes of space. " + ) def download_successful(state, dst, size, download_stats):