Skip to content

Commit

Permalink
fix: update local name construction in StorageObject to use provider …
Browse files Browse the repository at this point in the history
…local prefix
  • Loading branch information
jjjermiah committed Oct 3, 2024
1 parent d6d1bae commit 10aab6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snakemake_storage_plugin_gcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ def _download_directory(self):
self.local_path().mkdir(exist_ok=True)

for blob in self.directory_entries():
local_name = f"{blob.bucket.name}/{blob.name}"
# local_name = f"{blob.bucket.name}/{blob.name}"
local_name = self.provider.local_prefix / self.bucket.name / blob.name

# Don't try to create "directory blob"
if os.path.exists(local_name) and os.path.isdir(local_name):
Expand Down

0 comments on commit 10aab6f

Please sign in to comment.