Skip to content

Commit

Permalink
fix(storage): fix files (list) operation (#149)
Browse files Browse the repository at this point in the history
Fixes a reference to an older response property
  • Loading branch information
jyecusch authored Oct 21, 2024
1 parent 8d7ef2b commit 3acd30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nitric/resources/buckets.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def files(self):
resp = await self._storage_stub.list_blobs(
storage_list_blobs_request=StorageListBlobsRequest(bucket_name=self.name)
)
return [self.file(f.key) for f in resp.files]
return [self.file(f.key) for f in resp.blobs]

async def exists(self, key: str) -> bool:
"""Return true if a file in the bucket exists."""
Expand Down

0 comments on commit 3acd30b

Please sign in to comment.