From 92e86b6027bfda68f74c32660fb1e52cc63dccc5 Mon Sep 17 00:00:00 2001 From: Stephen Fegan Date: Thu, 17 Oct 2024 13:15:46 +0200 Subject: [PATCH] Fix logic for overwrite --- python/io/uploader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/io/uploader.py b/python/io/uploader.py index be25d8b7..2f5ee9c9 100644 --- a/python/io/uploader.py +++ b/python/io/uploader.py @@ -96,11 +96,11 @@ def do_single_upload_from_io(self, rel_filepath, mime_type, iostream): if(os.path.exists(abs_path)): if(self.overwrite): if(self.loud): - print("Skipping:",rel_filepath) - return None + print("Updating:",rel_filepath) else: if(self.loud): - print("Updating:",rel_filepath) + print("Skipping:",rel_filepath) + return None else: if(self.loud): print("Uploading:",rel_filepath)