ActivityPub-federated video streaming platform using P2P directly in your web browser
Add base dir to prune storage script
Chocobozzzbe9727bd327e
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.tsindex f2be1b8ee9..c9e4dbd4b8 100755--- a/scripts/prune-storage.ts+++ b/scripts/prune-storage.ts@@ -37,7 +37,8 @@ async function run () {toDelete = toDelete.concat(await pruneDirectory(directory, false))}- toDelete = toDelete.concat(await readdir(CONFIG.STORAGE.TMP_DIR))+ 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.')