Skip to content

Commit

Permalink
Fix failure on convert in modern Node.js
Browse files Browse the repository at this point in the history
Closes #30.
  • Loading branch information
eyoung8 committed Jan 22, 2022
1 parent c860873 commit 12394da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/worm-scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (argv._.includes("download")) {

if (argv._.includes("convert")) {
commands.push(() => {
return fs.rmdir(chaptersPath, { recursive: true, maxRetries: 3 })
return fs.rm(chaptersPath, { force: true, recursive: true, maxRetries: 3 })
.then(() => fs.mkdir(chaptersPath, { recursive: true }))
.then(() => convert(cachePath, manifestPath, chaptersPath, argv.book, argv.jobs));
});
Expand Down

0 comments on commit 12394da

Please sign in to comment.