added ensureDir for thumbnails

pull/19/head
tycrek 3 years ago
parent 3d9d0aaf45
commit e6e6164cde
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -76,6 +76,9 @@ function preStartup() {
fs.watch(path('auth.json'), { persistent: false }, (eventType, _filename) => eventType === 'change' && fs.readJson(path('auth.json'))
.then((json) => (tokens.toString() != json.tokens.toString()) && (tokens = json.tokens) && (users = json.users) && log(`New token added: ${tokens[tokens.length - 1]}`))
.catch(console.error));
// Create thumbnails directory
fs.ensureDirSync(path('uploads/thumbnails'));
}
function startup() {

Loading…
Cancel
Save