Skip to content

Commit ca9dba1

Browse files
authored
fix: Public example should align with others (#4944)
1 parent 9abf59e commit ca9dba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fragments/lib/storage/js/list.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ List keys under a specified path, as well as `lastModified` timestamp.
66

77
```javascript
88
Storage.list('photos/') // for listing ALL files without prefix, pass '' instead
9-
.then((result) => console.log(result))
9+
.then(({ results }) => console.log(results))
1010
.catch((err) => console.log(err));
1111
```
1212

1313
Note the trailing slash `/` - if you had requested `Storage.list('photos')` it would also match against files like `photos123.jpg` alongside `photos/123.jpg`.
1414

15-
The format of the result looks like this:
15+
The format of the response looks like this:
1616

1717
```js
1818
{

0 commit comments

Comments
 (0)