Wait for .torrent files to finish downloading.
This commit is contained in:
@@ -25,7 +25,10 @@ class FolderWatcher {
|
|||||||
const glob = `${torrentsFolderPath}/**/*.torrent`
|
const glob = `${torrentsFolderPath}/**/*.torrent`
|
||||||
log('Folder Watcher: watching: ', glob)
|
log('Folder Watcher: watching: ', glob)
|
||||||
|
|
||||||
const options = {ignoreInitial: true}
|
const options = {
|
||||||
|
ignoreInitial: true,
|
||||||
|
awaitWriteFinish: true
|
||||||
|
}
|
||||||
this.watcher = chokidar.watch(glob, options)
|
this.watcher = chokidar.watch(glob, options)
|
||||||
this.watcher
|
this.watcher
|
||||||
.on('add', (path) => {
|
.on('add', (path) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user