From 2e20800113983e8c85930ba9a3ed9b366f70b85b Mon Sep 17 00:00:00 2001 From: cxnt Date: Fri, 6 Oct 2023 21:15:35 +0400 Subject: [PATCH] enhance archive size --- src/functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions.py b/src/functions.py index fcef008..6c3fdd1 100644 --- a/src/functions.py +++ b/src/functions.py @@ -154,6 +154,7 @@ def upload_coco_project(full_archive_name, result_archive, app_logger): sly.fs.archive_directory(g.storage_dir, result_archive) archive_size = sly.fs.get_file_size(result_archive) / (1024 * 1024) + archive_size = f"{archive_size:.2f} MB" sly.logger.info(f"Total archive size: {archive_size}") app_logger.info("Result directory is archived")