@@ -285,9 +285,7 @@ console.log(blobs)
285
285
```
286
286
287
287
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.
291
289
292
290
Take the following list of keys as an example:
293
291
@@ -309,7 +307,7 @@ const { blobs } = await store.list()
309
307
// { etag: "etag2", key: "cats/tom.jpg" },
310
308
// { etag: "etag3", key: "mice/jerry.jpg" },
311
309
// { etag: "etag4", key: "mice/mickey.jpg" },
312
- // { etag: "etag5", key: "pink-panther.jg " },
310
+ // { etag: "etag5", key: "pink-panther.jpg " },
313
311
// ]
314
312
console .log (blobs)
315
313
```
@@ -329,7 +327,7 @@ console.log(directories)
329
327
To drill down into a directory and get a list of its items, you can use the directory name as the ` prefix ` value.
330
328
331
329
``` javascript
332
- const { blobs , directories } = await store .list ({ prefix: ' mice/' })
330
+ const { blobs , directories } = await store .list ({ directories : true , prefix: ' mice/' })
333
331
334
332
// [ { etag: "etag3", key: "mice/jerry.jpg" }, { etag: "etag4", key: "mice/mickey.jpg" } ]
335
333
console .log (blobs)
0 commit comments