File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tutorials/0005-regular-files-api Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ To iterate over all the values, we can use a `for await...of` loop:
26
26
``` javascript
27
27
const result = []
28
28
29
- for await (const resultPart of ipfs .files . ls (' /catPics' )) {
29
+ for await (const resultPart of ipfs .ls (' /catPics' )) {
30
30
result .push (resultPart)
31
31
}
32
32
@@ -39,7 +39,7 @@ To make things easier, we can use the [`it-all`](https://www.npmjs.com/package/i
39
39
// the all function comes from the it-all package
40
40
// and is made globally available (just like ipfs) in our code challenges
41
41
42
- const result = await all (ipfs .files . ls (' /catPics' ))
42
+ const result = await all (ipfs .ls (' /catPics' ))
43
43
```
44
44
45
45
The ` result ` variable is now an array of objects, one for each file or directory found, structured like so:
You can’t perform that action at this time.
0 commit comments