We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b616e0 commit 45ef5caCopy full SHA for 45ef5ca
src/ipfsd-daemon.js
@@ -172,7 +172,7 @@ class Daemon {
172
*/
173
async cleanup () {
174
if (!this.clean) {
175
- await fs.rmdir(this.path, {
+ await fs.rm(this.path, {
176
recursive: true
177
})
178
this.clean = true
src/utils.js
@@ -14,7 +14,7 @@ const log = debug('ipfsd-ctl:utils')
14
15
const removeRepo = async (repoPath) => {
16
try {
17
- await fs.promises.rmdir(repoPath, {
+ await fs.promises.rm(repoPath, {
18
19
20
} catch (err) {
0 commit comments