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

Make ls links' depth dynamic. #693

Merged
merged 2 commits into from
Feb 20, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}))

callback(null, result)
Expand Down