RE: Publishing to IPFS

You are viewing a single comment's thread from:

Publishing to IPFS

in development •  7 years ago  (edited)

Nope, as I written above, no directory name, just the hash of it.
When you publish, you specify exactly one hash.
If you want directories, put them in the tree: example:

mkdir -p a/b/c
echo hello > a/b/c/hello.txt
ipfs add -r a
… SOMEHASH
ipfs name publish SOMEHASH

you will then find the CONTENT of a (note that the name of a will not appear anywhere): so you will find the directory b, which includes the directory c, which includes hello.txt
if you modify the content of a, just add it again, and publish the new hash.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!