IPFS Files API allows to manipulate unixfs objects (current IPFS files and directories format) in manner similar to normal Unix commands.
# How does it work?
IPFS Files API introduces virtual root directory.
You can check it content with:
ipfs files ls /.
You can copy files and directories that were added to IFPS using:
ipfs files cp /ipfs/Qmc4xcnns2rA4U /greetings.
Then you can view content of that directory using ipfs files ls /greetings and read file in it using
ipfs files read /greetings/greetings.md.
You can then modify the structure with different commands:
ipfs files mv /greetings/greetings.md /greetings/greetings.txt
Note that will change hash of the /greetings directory. You can check new hash using:
ipfs files stat --hash /greetings.
# External Links
You can view the links below at one-tab.com
: