Skip to content

Commit

Permalink
cleanup on closedown
Browse files Browse the repository at this point in the history
  • Loading branch information
msmitherdc authored Aug 30, 2024
1 parent a5590f6 commit fea6185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def __del__(self) -> None:
# ensure file removed from cache when cloudpath object deleted
if (
hasattr(self, "client")
and self.client.file_cache_mode == FileCacheMode.cloudpath_object
#and self.client.file_cache_mode == FileCacheMode.cloudpath_object
):
self.clear_cache()

Expand Down

0 comments on commit fea6185

Please sign in to comment.