Skip to content

Commit

Permalink
Update cache.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitris-flyr authored Feb 19, 2024
1 parent b3504d3 commit a845a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fcache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def create(self):
"""Create the write buffer and cache directory."""
if not self._sync and not hasattr(self, "_buffer"):
self._buffer = {}
os.makedirs(self.cache_dir, exist_ok=False)
os.makedirs(self.cache_dir, exist_ok=True)

def clear(self):
"""Remove all items from the write buffer and cache.
Expand Down

0 comments on commit a845a81

Please sign in to comment.