const storageOnlyOwnedToPrune = [
CONFIG.STORAGE.VIDEOS_DIR,
- CONFIG.STORAGE.TORRENTS_DIR
+ CONFIG.STORAGE.TORRENTS_DIR,
+ CONFIG.STORAGE.REDUNDANCY_DIR
]
const storageForAllToPrune = [
toDelete = toDelete.concat(await pruneDirectory(directory, false))
}
+ const tmpFiles = await readdir(CONFIG.STORAGE.TMP_DIR)
+ toDelete = toDelete.concat(tmpFiles.map(t => join(CONFIG.STORAGE.TMP_DIR, t)))
+
if (toDelete.length === 0) {
console.log('No files to delete.')
return