diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-28 08:56:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-28 09:05:53 +0200 |
commit | 6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f (patch) | |
tree | 2cb0663d7e6dda740101e1bf0abc4d4d2c2ec084 | |
parent | 2d6f28a2d9f9986865a77838c548ffdb8baac4f5 (diff) | |
download | PeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.tar.gz PeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.tar.zst PeerTube-6b4e74c2b7e5bbfc4abf1cd9b67b2067fc93d09f.zip |
Add log to prune storage script
-rwxr-xr-x | scripts/prune-storage.ts | 2 |
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)), |