From 64d3ec60940715af90c1f33c3da44a1606ee8fa5 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Tue, 22 Oct 2024 10:54:21 +1100 Subject: [PATCH] fix(storage): fix files (list) operation Fixes a reference to an older response property --- nitric/resources/buckets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitric/resources/buckets.py b/nitric/resources/buckets.py index b2c82fa..39e067c 100644 --- a/nitric/resources/buckets.py +++ b/nitric/resources/buckets.py @@ -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."""