Mutable File System Working with files

Mutable File System

IPFS uses hashes to address files and MFS helps in accessing these files using names.

So how exactly are these CID’s of files are being converted into file names when using ipfs files commands?

Thanks in advance.

This work locally on your node.

When you modify something in the MFS, Kubo will parse the block with the current CID, modify the thing and serialize it back. This obviously create a new hash since it’s different, and so it goes to the parent path and update the CID to point to the new hash (repeat for parent of parent, parent of parent of parent, …).

1 Like