Updated thumbs.js

This commit is contained in:
Bobby Wibowo 2020-05-28 04:23:26 +07:00
parent cc122f63b8
commit c36a76e981
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -51,6 +51,7 @@ self.getFiles = async directory => {
cfcache: 0 = do not clear cloudflare cache (default), 1 = clear cloudflare cache
`))
console.log('Looking through existing thumbnails\u2026')
const uploads = await self.getFiles(paths.uploads)
let thumbs = await self.getFiles(paths.thumbs)
thumbs = thumbs.map(thumb => {
@ -60,7 +61,7 @@ self.getFiles = async directory => {
console.log(`Found ${thumbs.length} existing thumbnails (may include placeholder symlinks).`)
if (!self.verbose)
console.log('Verbose logging disabled! Please be patient, this script may appear to be frozen but is actually working in the background\u2026')
console.log('Verbose logging disabled! Please be patient, this script may appear to be frozen but is actually working in the background.')
const succeeded = []
let error = 0