Skip to content

Commit

Permalink
Attempt to fix error when counting directories in Google Cloud Storag…
Browse files Browse the repository at this point in the history
…e plugin
  • Loading branch information
davelopez committed May 17, 2024
1 parent d2d008b commit 55b10c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/files/sources/googlecloudstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def _open_fs(self, user_context=None, opts: Optional[FilesSourceOptions] = None)
elif props.get("token"):
args["client"] = Client(project=project, credentials=Credentials(**props))
handle = GCSFS(bucket_name, root_path=root_path, retry=0, **{**args, **extra_props})
# https://fs-gcsfs.readthedocs.io/en/stable/#limitations
handle.fix_storage()
return handle


Expand Down

0 comments on commit 55b10c4

Please sign in to comment.