Lesson: Wrap Filenames and Directory Info around Content
Goals
Steps
Step 1: Create the file you're going to add
$ echo "version 1 of my text" > mytextfile.txtStep 2: Add the file to IPFS
$ ipfs add -w mytextfile.txt
added QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy mytextfile.txt
added QmPvaEQFVvuiaYzkSVUp23iHTQeEUpDaJnP8U7C3PqE57wStep 3: List the directory information
Step 4: Read the File's contents using the parent directory's hash
Bonus Steps
Explanation
Next Steps
最后更新于