This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Make entry.type
consistent arcoss various APIs
#3229
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
status/ready
Ready to be worked
Following APIs seem to return different thing for
entry.type
:ipfs.files.ls
-> type: 1 (While docs say it's either 'file' | 'dir' https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/FILES.md#ipfsfileslspath-options)ipfs.files.stat
-> type: 'directory'ipfs.ls
-> type: 'dir' (Docs don't specify but given others been document as 'directory' one would assume the same)This can be very confusing when working with all these APIs as just like ipfs-webui does.
I would like to propose normalizing to a consistent variants for
type
.The text was updated successfully, but these errors were encountered: