MFS folder structure is not getting replicated to remote nodes

51 views
Skip to first unread message

Pandiyaraja Ramamoorthy

unread,
Jul 30, 2019, 1:58:23 AM7/30/19
to ipfs-users
H ipfs community, 

    I'm implementing MFS in my product to store files. I'm adding files in a structure in my local node but its not getting replicated on remote nodes.

I have created a directory /tmp, and added a file testfile.txt in the tmp directory, It produces a hash. 
 
I tried to read by hash from remote node, it's getting replicated and able to get the content of the hash.

I tried to read by directory file (/tmp/testfile.txt) from remote node I'm getting error

    {"Message":"file does not exist","Code":0,"Type":"error"}


Steven Allen

unread,
Jul 31, 2019, 1:17:07 PM7/31/19
to Pandiyaraja Ramamoorthy, ipfs-...@googlegroups.com
The issue here is that MFS is local, just like your local filesystem. Every node has it's own local MFS "root". You can get your first node's MFS root by running `ipfs files stat /` and then you'll be able to browse files relative to this hash.

--
You received this message because you are subscribed to the Google Groups "ipfs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipfs-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipfs-users/932b4310-90d2-4b3d-9893-ff1038b01743%40googlegroups.com.

Pandiyaraja Ramamoorthy

unread,
Aug 5, 2019, 12:00:54 AM8/5/19
to Steven Allen, ipfs-...@googlegroups.com
Thanks, I'll check it out. 
Reply all
Reply to author
Forward
0 new messages