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

Commit 01cb74a

Browse files
alanshawdaviddias
authored andcommitted
docs: fixes files.rm typo in docs (#219)
1 parent 1c600b1 commit 01cb74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPEC/FILES.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -667,14 +667,14 @@ If no `callback` is passed, a promise is returned.
667667

668668
```JavaScript
669669
// To remove a file
670-
ipfs.files.mkdir('/my/beautiful/file.txt', (err) => {
670+
ipfs.files.rm('/my/beautiful/file.txt', (err) => {
671671
if (err) {
672672
console.error(err)
673673
}
674674
})
675675

676676
// To remove a directory
677-
ipfs.files.mkdir('/my/beautiful/directory', { recursive: true }, (err) => {
677+
ipfs.files.rm('/my/beautiful/directory', { recursive: true }, (err) => {
678678
if (err) {
679679
console.error(err)
680680
}

0 commit comments

Comments
 (0)