Stop failing the convert step due to busy filesystems

This often happens with virus scanners, etc.
This commit is contained in:
Domenic Denicola 2020-11-07 18:36:29 -05:00
commit 58b0856deb

View file

@ -84,7 +84,7 @@ if (argv._.includes("download")) {
if (argv._.includes("convert")) {
commands.push(() => {
return fs.rmdir(chaptersPath, { recursive: true })
return fs.rmdir(chaptersPath, { recursive: true, maxRetries: 3 })
.then(() => fs.mkdir(chaptersPath, { recursive: true }))
.then(() => convert(cachePath, manifestPath, chaptersPath, argv.book, argv.jobs));
});