ActivityPub-federated video streaming platform using P2P directly in your web browser
Add tmp and redundancy directories to prune script
Chocobozzz3ba862daecd3
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.tsindex c0cd198f77..f2be1b8ee9 100755--- a/scripts/prune-storage.ts+++ b/scripts/prune-storage.ts@@ -19,7 +19,8 @@ async function run () {const storageOnlyOwnedToPrune = [CONFIG.STORAGE.VIDEOS_DIR,- CONFIG.STORAGE.TORRENTS_DIR+ CONFIG.STORAGE.TORRENTS_DIR,+ CONFIG.STORAGE.REDUNDANCY_DIR]const storageForAllToPrune = [@@ -36,6 +37,8 @@ async function run () {toDelete = toDelete.concat(await pruneDirectory(directory, false))}+ toDelete = toDelete.concat(await readdir(CONFIG.STORAGE.TMP_DIR))+if (toDelete.length === 0) {console.log('No files to delete.')return