diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/prune-storage.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts index f2be1b8ee..c9e4dbd4b 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts | |||
@@ -37,7 +37,8 @@ async function run () { | |||
37 | toDelete = toDelete.concat(await pruneDirectory(directory, false)) | 37 | toDelete = toDelete.concat(await pruneDirectory(directory, false)) |
38 | } | 38 | } |
39 | 39 | ||
40 | toDelete = toDelete.concat(await readdir(CONFIG.STORAGE.TMP_DIR)) | 40 | const tmpFiles = await readdir(CONFIG.STORAGE.TMP_DIR) |
41 | toDelete = toDelete.concat(tmpFiles.map(t => join(CONFIG.STORAGE.TMP_DIR, t))) | ||
41 | 42 | ||
42 | if (toDelete.length === 0) { | 43 | if (toDelete.length === 0) { |
43 | console.log('No files to delete.') | 44 | console.log('No files to delete.') |