Don't delete .keep
This commit is contained in:
parent
7eb866cfe4
commit
af93b014f7
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ async function generateThumbnail(f) {
|
|||
.on('end', () => {
|
||||
// Save space by deleting tmp directory
|
||||
for (let files of fs.readdirSync(`./public/thumbnail/tmp/${f}`)) {
|
||||
if (files == '.keep') return;
|
||||
fs.unlinkSync(`./public/thumbnail/tmp/${f}/${files}`);
|
||||
}
|
||||
fs.rmdirSync(`./public/thumbnail/tmp/${f}`);
|
||||
|
|
Loading…
Reference in a new issue