Skip to content

Commit

Permalink
update blob
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Dec 7, 2023
1 parent 4121f28 commit 5adf0ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snakemake_storage_plugin_gcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ class StorageObject(StorageObjectRead, StorageObjectWrite, StorageObjectGlob):
# futher stuff.

def __post_init__(self):
if self.is_valid_query():
parsed = urlparse(self.query)
self.bucket_name = parsed.netloc
self.key = parsed.path.lstrip("/")
self._local_suffix = self._local_suffix_from_key(self.key)
parsed = urlparse(self.query)
self.bucket_name = parsed.netloc
self.key = parsed.path.lstrip("/")
self._local_suffix = self._local_suffix_from_key(self.key)
self._is_dir = None
self.update_blob()

def cleanup(self):
# Close any open connections, unmount stuff, etc.
Expand Down

0 comments on commit 5adf0ac

Please sign in to comment.