Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade ipfs to 0.55.x #661

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/tutorials/0004-mutable-file-system/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ such as `/catPics`,
`files.ls` produces an array of objects, one for each file or directory
contained in the directory you're inspecting, with the following properties:

- `cid`: the Content Identifier (CID) that identifies your file in IPFS
- `name`: the file's name
- `type`: the object's type (`0` - file or `1` - directory)
- `type`: the object's type (`file` or `directory`)
- `size`: the size of the file in bytes
- `cid`: the Content Identifier (CID) that identifies your file in IPFS
- `mode`: the UnixFS mode as a Number
- `mtime`: an object with numeric `secs` and `nsecs` properties
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field will be present if found in the DAG so it's probably worth keeping it here with a note that it's an optional property.

That is, mode gets a default value depending on if the entry is a file or directory, but mtime does not.


If we wanted to inspect the contents of a `/catPics`
directory, we could do it like this:
Expand Down