Skip to content

Commit

Permalink
add overload for not syncing initally
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ11teen committed May 16, 2021
1 parent d9fc20b commit b807ada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cloudmappings/cloudstoragemapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ class CloudMapping(MutableMapping):
def __init__(
self,
storageprovider: StorageProvider,
sync_initially: bool = True,
) -> None:
self._storageprovider = storageprovider
self.etags = {}
if self._storageprovider.create_if_not_exists():
if self._storageprovider.create_if_not_exists() and sync_initially:
self.sync_with_cloud()

def sync_with_cloud(self, key: str = None) -> None:
Expand Down

0 comments on commit b807ada

Please sign in to comment.