+
+ removePreviousFilenameIfNeeded () {
+ if (!this.previousThumbnailFilename) return
+
+ const previousPath = this.getPreviousPath()
+ remove(previousPath)
+ .catch(err => logger.error('Cannot remove previous thumbnail file %s.', previousPath, { err }))
+
+ this.previousThumbnailFilename = undefined
+ }