Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
feat: support recursive ipfs ls
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKrone authored and daviddias committed Feb 20, 2018
1 parent de8d97c commit cfe95f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ module.exports = (arg) => {
}

result = result.map((link) => ({
depth: 1,
name: link.Name,
path: args + '/' + link.Name,
size: link.Size,
hash: link.Hash,
type: typeOf(link)
type: typeOf(link),
depth: link.Depth || 1
}))

callback(null, result)
Expand Down

0 comments on commit cfe95f6

Please sign in to comment.