ipfs / ipfs/kubo

ipfs ls operates on both files and directories

Open
#9,541 5 comments 0 reactions 0 assignees View on GitHub
need/triage topic/docs-ipfs
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

### Checklist

- [X] I am reporting a documentation issue in this repo, not https://docs.ipfs.tech.
- [X] I have searched on the [issue tracker](https://github.com/ipfs/kubo/issues?q=is%3Aissue) for my issue.

### Location

https://github.com/ipfs/kubo/blob/255e64e49e837afce534555f3451e2cffe9f0dcb/core/commands/ls.go#L50

### Description

For some reason `ipfs ls` works on UnixFS files and lists the blocks and dag sizes linked from a file root. I don't know why but IIUC it's been that way for a while. We should either document this feature or error on it. The current setup is confusing.

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.