Add type
, size
and (optional) cumulativesize
to ipfs ls
JSON output
#5807
Labels
topic/ls API
Topic ls API
Version information:
0.4.18
Type:
Enhancement
Description:
Part of #3056 and #3081, we should consider adding a
Type
,Size
and (optional, see #5804)CumulativeSize
to the root node foripfs ls
output. This information (except perhaps the cumsize) should already be available when performing the ls and is quite useful for some purposes (i.e. ipfs-search.com), as it saves an additional call toipfs files stat
.Perhaps it even makes sense to include the full stat output, for consistency?
Current output of
ipfs ls --enc=json /ipfs/QmYcutogfHrrxigzVw2Vi8P1cdiuXNn9VecL9cy95wB9MP
:Output of
ipfs files stat --enc=json /ipfs/QmYcutogfHrrxigzVw2Vi8P1cdiuXNn9VecL9cy95wB9MP
:Where we're coming from -
ipfs file ls --enc=json
:Related:
The text was updated successfully, but these errors were encountered: