From 3260a782ad4a9e71a2f66049fbe50d431c9787ea Mon Sep 17 00:00:00 2001 From: Ankush Pal Date: Sat, 30 May 2026 13:38:36 +0530 Subject: [PATCH] Fix local storage caching issue --- metaflow/plugins/datastores/local_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metaflow/plugins/datastores/local_storage.py b/metaflow/plugins/datastores/local_storage.py index d00d6567a57..ca88353fd41 100644 --- a/metaflow/plugins/datastores/local_storage.py +++ b/metaflow/plugins/datastores/local_storage.py @@ -135,7 +135,7 @@ def save_bytes(self, path_and_bytes_iter, overwrite=False, len_hint=0): else: byte_obj, metadata = obj, None full_path = self.full_uri(path) - if not overwrite and os.path.exists(full_path): + if overwrite and os.path.exists(full_path): continue LocalStorage._makedirs(os.path.dirname(full_path)) self._atomic_write(full_path, byte_obj.read(), mode="wb")