create account

RE: Publishing to IPFS by moderators

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @coriander/re-moderators-re-sevcsik-publishing-to-ipfs-20180207t204430166z

· @moderators ·
just 
$ ipfs name publish  img_test ?

ps: can i create directory ?
properties (22)
authormoderators
permlinkre-coriander-re-moderators-re-sevcsik-publishing-to-ipfs-20180207t222122033z
categorydevelopment
json_metadata{"tags":["development"],"app":"steemit/0.1"}
created2018-02-07 22:21:21
last_update2018-02-07 22:21:21
depth3
children1
last_payout2018-02-14 22:21:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length67
author_reputation251,411,212,123
root_title"Publishing to IPFS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,762,853
net_rshares0
@coriander · (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.
properties (22)
authorcoriander
permlinkre-moderators-re-coriander-re-moderators-re-sevcsik-publishing-to-ipfs-20180207t224409687z
categorydevelopment
json_metadata{"tags":["development"],"app":"steemit/0.1"}
created2018-02-07 22:44:12
last_update2018-02-07 23:49:36
depth4
children0
last_payout2018-02-14 22:44:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length541
author_reputation127,229,595
root_title"Publishing to IPFS"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id35,766,626
net_rshares0