aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-28 08:56:08 +0200
committerChocobozzz <me@florianbigard.com>2021-04-28 09:05:53 +0200
commit6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f (patch)
tree2cb0663d7e6dda740101e1bf0abc4d4d2c2ec084 /scripts
parent2d6f28a2d9f9986865a77838c548ffdb8baac4f5 (diff)
downloadPeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.tar.gz
PeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.tar.zst
PeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.zip
Add log to prune storage script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prune-storage.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts
index bdfb335c6..32314b0b7 100755
--- a/scripts/prune-storage.ts
+++ b/scripts/prune-storage.ts
@@ -34,6 +34,8 @@ async function run () {
34 34
35 let toDelete: string[] = [] 35 let toDelete: string[] = []
36 36
37 console.log('Detecting files to remove, it could take a while...')
38
37 toDelete = toDelete.concat( 39 toDelete = toDelete.concat(
38 await pruneDirectory(CONFIG.STORAGE.VIDEOS_DIR, doesVideoExist(true)), 40 await pruneDirectory(CONFIG.STORAGE.VIDEOS_DIR, doesVideoExist(true)),
39 await pruneDirectory(CONFIG.STORAGE.TORRENTS_DIR, doesVideoExist(true)), 41 await pruneDirectory(CONFIG.STORAGE.TORRENTS_DIR, doesVideoExist(true)),