This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Make entry.type
consistent arcoss various APIs #3229
Closed
Description
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
.