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...
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)
oripfs.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...