Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 7d3761c

Browse files
committed
whoops, bugfix
1 parent b75a8e8 commit 7d3761c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/commands/ls.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Unixfs = require('ipfs-unixfs')
66
module.exports = {
77
command: 'ls <key>',
88

9-
describe: 'List files for the given directory hash',
9+
describe: 'List files for the given directory',
1010

1111
builder: {
1212
v: {
@@ -25,10 +25,10 @@ module.exports = {
2525
handler (argv) {
2626
let path = argv.key
2727
if (path.startsWith('/ipfs/')) {
28-
path.replace('/ipfs/', '')
28+
path = path.replace('/ipfs/', '')
2929
}
3030

31-
argv.ipfs.object.get(argv._[1], {enc: 'base58'}, (err, node) => {
31+
argv.ipfs.object.get(path, {enc: 'base58'}, (err, node) => {
3232
if (err) {
3333
throw err
3434
}

0 commit comments

Comments
 (0)