2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2021-01-24 17:46:18 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var onceCleanUp sync.Once
|
|
|
|
|
|
|
|
func initCleanUp() {
|
|
|
|
services.CleanUp = photoprism.NewCleanUp(Config())
|
|
|
|
}
|
|
|
|
|
|
|
|
func CleanUp() *photoprism.CleanUp {
|
|
|
|
onceCleanUp.Do(initCleanUp)
|
|
|
|
|
|
|
|
return services.CleanUp
|
|
|
|
}
|