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:
2626``` javascript
2727const result = []
2828
29- for await (const resultPart of ipfs .files . ls (' /catPics' )) {
29+ for await (const resultPart of ipfs .ls (' /catPics' )) {
3030 result .push (resultPart)
3131}
3232
@@ -39,7 +39,7 @@ To make things easier, we can use the [`it-all`](https://www.npmjs.com/package/i
3939// the all function comes from the it-all package
4040// and is made globally available (just like ipfs) in our code challenges
4141
42- const result = await all (ipfs .files . ls (' /catPics' ))
42+ const result = await all (ipfs .ls (' /catPics' ))
4343```
4444
4545The ` 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