]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add log to prune storage script
authorChocobozzz <me@florianbigard.com>
Wed, 28 Apr 2021 06:56:08 +0000 (08:56 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 28 Apr 2021 07:05:53 +0000 (09:05 +0200)
scripts/prune-storage.ts

index bdfb335c61aeb7a28d4c74b94b510b7cf6aef3d4..32314b0b7c134ebace445b756bbd185a150bd82c 100755 (executable)
@@ -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)),