You are viewing a single comment's thread from:

RE: Publishing to IPFS

in #development7 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.

Coin Marketplace

STEEM 0.27
TRX 0.21
JST 0.038
BTC 95655.45
ETH 3627.77
SBD 3.80