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

Commit 082ec66

Browse files
committed
fix rm -r bug
1 parent aa193d5 commit 082ec66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ function IpfsAPI (host_or_multiaddr, port) {
245245
ls: argCommand('files/ls'),
246246
mkdir: argCommand('files/mkdir'),
247247
stat: argCommand('files/stat'),
248-
rm: function (key, value, opts, cb) {
248+
rm: function (path, opts, cb) {
249249
if (typeof (opts) === 'function') {
250250
cb = opts
251251
opts = {}
252252
}
253-
return requestAPI('config', [key, value], opts, null, cb)
253+
return requestAPI('files/rm', path, opts, null, cb)
254254
},
255255
read: argCommand('files/read'),
256256
write: argCommand('files/write'),

0 commit comments

Comments
 (0)