Have `ipfs ls` return type as strings
Open
topic/ls API
- Dominant language
- Go
- Stars
- 17.1k
- Forks
- 3.2k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 11
Description
#### Version information:
0.4.18
#### Type:
Bug
#### Description:
The `ipfs ls` command, when run with `--enc=json`, returns the types of listed items as rather meaningless numbers, whereas other places (i.e. `ipfs files stat` and the hopefully-soon-deprecated `ipfs file ls` return strings). It would be great to have this consistently return a string. Very low-hanging fruit, although perhaps a (much needed) breaking change.
Discussed before with @Stebalien in #4580.
Contributor guide
Assessment
This issue has not been assessed yet.