Currently, when ipfs ls lists a sharded directory, it naively walks the dag without actually validating the internal structure. This means ipfs ls /ipfs/QmFoo might list some file named "bar", and ipfs get /ipfs/QmFoo/bar might then fail (because the directory was malformed).
We should be validating this structure as we traverse it.
Currently, when
ipfs lslists a sharded directory, it naively walks the dag without actually validating the internal structure. This meansipfs ls /ipfs/QmFoomight list some file named "bar", andipfs get /ipfs/QmFoo/barmight then fail (because the directory was malformed).We should be validating this structure as we traverse it.