Add base dir to prune storage script

parent 3ba862da
......@@ -37,7 +37,8 @@ async function run () {
toDelete = toDelete.concat(await pruneDirectory(directory, false))
}
toDelete = toDelete.concat(await readdir(CONFIG.STORAGE.TMP_DIR))
const tmpFiles = await readdir(CONFIG.STORAGE.TMP_DIR)
toDelete = toDelete.concat(tmpFiles.map(t => join(CONFIG.STORAGE.TMP_DIR, t)))
if (toDelete.length === 0) {
console.log('No files to delete.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment