Skip to content

Commit

Permalink
handle bucket lsiting
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Jan 22, 2024
1 parent 3539b7b commit da37480
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hail/python/hailtop/fs/router_fs.py
Expand Up @@ -307,8 +307,10 @@ async def list_within_each_prefix(prefixes: List[AsyncFSURL], parts: List[str])
raise ValueError(f'glob pattern only allowed in path (e.g. not in bucket): {path}')

blobpath = url.path
components = blobpath.split('/')
assert len(components) > 0
if blobpath == '':
components = []
else:
components = blobpath.split('/')

glob_components = []
running_prefix = []
Expand Down

0 comments on commit da37480

Please sign in to comment.