mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
dirWatch: purge audio and meta files at the same time
This commit is contained in:
parent
dce2cd2439
commit
aecee503b5
|
|
@ -112,6 +112,7 @@ class DirWatch {
|
|||
}
|
||||
|
||||
if (dirWatch.deleteAfter) {
|
||||
this.unlink(filename);
|
||||
this.unlink(metaFile);
|
||||
}
|
||||
});
|
||||
|
|
@ -147,6 +148,7 @@ class DirWatch {
|
|||
}
|
||||
|
||||
if (dirWatch.deleteAfter) {
|
||||
this.unlink(filename);
|
||||
this.unlink(metaFile);
|
||||
}
|
||||
});
|
||||
|
|
@ -165,10 +167,10 @@ class DirWatch {
|
|||
talkgroup,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (dirWatch.deleteAfter) {
|
||||
this.unlink(filename);
|
||||
if (dirWatch.deleteAfter) {
|
||||
this.unlink(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue