ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

Cannot add file to directory or list contained items #140

Closed ghost closed 5 years ago

ghost commented 5 years ago

So I was able to add a directory to IPFS by adding an empty ArrayList in a DirWrapper, but I can't for the life of me find out how to add a file to it.

Almost all operations on the directory hash return an "ipfs method not allowed" 403 error, I can't even do ipfs.ls(directory_multihash) or ipfs.file.ls(directory_multihash).

And when I try to cat the directory I get a "this dag node is a directory" error, which is correct but doesn't help me in the slightest.

Please give me an example of how to add a file to my directory and a reason for why I can't list its files...