Skip to content

Commit 3acd30b

Browse files
authored
fix(storage): fix files (list) operation (#149)
Fixes a reference to an older response property
1 parent 8d7ef2b commit 3acd30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitric/resources/buckets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async def files(self):
160160
resp = await self._storage_stub.list_blobs(
161161
storage_list_blobs_request=StorageListBlobsRequest(bucket_name=self.name)
162162
)
163-
return [self.file(f.key) for f in resp.files]
163+
return [self.file(f.key) for f in resp.blobs]
164164

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

0 commit comments

Comments
 (0)