Skip to content

Commit dad2a71

Browse files
chore: update README
1 parent 4d2f3f9 commit dad2a71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,7 @@ console.log(blobs)
285285
```
286286

287287
Optionally, you can choose to group blobs together under a common prefix and then browse them hierarchically when
288-
listing a store.
289-
290-
To do this, you must use the `/` character in your keys to separate keys into multiple levels.
288+
listing a store. To do this, use the `/` character in your keys to group them into multiple levels.
291289

292290
Take the following list of keys as an example:
293291

@@ -309,7 +307,7 @@ const { blobs } = await store.list()
309307
// { etag: "etag2", key: "cats/tom.jpg" },
310308
// { etag: "etag3", key: "mice/jerry.jpg" },
311309
// { etag: "etag4", key: "mice/mickey.jpg" },
312-
// { etag: "etag5", key: "pink-panther.jg" },
310+
// { etag: "etag5", key: "pink-panther.jpg" },
313311
// ]
314312
console.log(blobs)
315313
```
@@ -329,7 +327,7 @@ console.log(directories)
329327
To drill down into a directory and get a list of its items, you can use the directory name as the `prefix` value.
330328

331329
```javascript
332-
const { blobs, directories } = await store.list({ prefix: 'mice/' })
330+
const { blobs, directories } = await store.list({ directories: true, prefix: 'mice/' })
333331

334332
// [ { etag: "etag3", key: "mice/jerry.jpg" }, { etag: "etag4", key: "mice/mickey.jpg" } ]
335333
console.log(blobs)

0 commit comments

Comments
 (0)