We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abf59e commit ca9dba1Copy full SHA for ca9dba1
src/fragments/lib/storage/js/list.mdx
@@ -6,13 +6,13 @@ List keys under a specified path, as well as `lastModified` timestamp.
6
7
```javascript
8
Storage.list('photos/') // for listing ALL files without prefix, pass '' instead
9
- .then((result) => console.log(result))
+ .then(({ results }) => console.log(results))
10
.catch((err) => console.log(err));
11
```
12
13
Note the trailing slash `/` - if you had requested `Storage.list('photos')` it would also match against files like `photos123.jpg` alongside `photos/123.jpg`.
14
15
-The format of the result looks like this:
+The format of the response looks like this:
16
17
```js
18
{
0 commit comments