What I am trying to achieve is to transfer a directory block over sneakernet without having to include any of the content inside - it is assumed that the destination already has the content just missing the directory format.
I understand that directories are a hash containing the hashes of it’s files but clearly it contains a bit of additional information because
ipfs ls and
ipfs dag get shows filenames with it.
ipfs block get gives me data but this data does not appear to correspond to the directory hash because when I pipe the data from
ipfs block get to
ipfs add I get a completely different hash. I could recreate the data as a block with the right hash but this isn’t much good to me unless I can add the raw block to the network (like
How does IPFS store directory data and how can I access the raw data without it trying to interpret it as a directory?