ipfs / ipfs/kubo

Have `ipfs ls` return type as strings

Open
#5,805 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.