|
|
|
@ -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
|
|
|
|
|