X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fprune-storage.ts;h=32314b0b7c134ebace445b756bbd185a150bd82c;hb=a1bb73f9b591686b2ddfeb3291f305dae9f7fc6c;hp=bdfb335c61aeb7a28d4c74b94b510b7cf6aef3d4;hpb=dc48fdbe68e9dd3a3a6028181e61d8595d98e654;p=github%2FChocobozzz%2FPeerTube.git 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 () { let toDelete: string[] = [] + console.log('Detecting files to remove, it could take a while...') + toDelete = toDelete.concat( await pruneDirectory(CONFIG.STORAGE.VIDEOS_DIR, doesVideoExist(true)), await pruneDirectory(CONFIG.STORAGE.TORRENTS_DIR, doesVideoExist(true)),