You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPING_TUTORIALS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,7 +377,7 @@ If the object returned by your `validate` function has the property `fail`, the
377
377
You may (optionally) use [markdown formatting](https://guides.github.com/features/mastering-markdown/) in your `fail` or `success` messages. For example, the following validation code:
378
378
379
379
```js
380
-
} elseif (result &&!result.hash) {
380
+
} elseif (result &&!result.cid) {
381
381
return { fail:"That result doesn't look right. Are you sure you ran the `stat` method on your empty root directory?" }
return{fail: `Your function returned a CID, but it doesn't have the right contents. Be sure to \`put\` an object with \`bar\` as the named link and \`cid\` as its value.`}
logDesc: "Here's the status of your root directory ( `/` ). Notice that it has a hash (CID) even though it doesn't have contents yet. Every empty IPFS node has this exact same hash, because their non-existent contents are identical!",
12
-
log: result
11
+
logDesc: "Here's the status of your root directory ( `/` ). Notice that it has a CID even though it doesn't have contents yet. Every empty IPFS node has this exact same CID, because their non-existent contents are identical!",
Let's see `files.ls` in action! List the contents of your root directory ( `/` ). Be sure to use the `{ long: true }` option to ensure you can see all of the details about the files you've uploaded.
1
+
Let's see `files.ls` in action! List the contents of your root directory ( `/` ).
2
2
3
3
_Note: We've already included the code for adding your files to MFS, so you can
4
4
focus on listing the contents of your directory._
5
+
6
+
**Hint**: Don't forget that `files.ls` returns an Async Iterable, so don't forget to either use the `for await...of` loop or the `it-all` package to return the result.
0 commit comments