2022-10-15 21:54:11 +02:00
|
|
|
package get
|
2020-11-15 15:15:56 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"sync"
|
|
|
|
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
|
|
)
|
|
|
|
|
|
|
|
var onceFiles sync.Once
|
|
|
|
|
|
|
|
func initFiles() {
|
|
|
|
services.Files = photoprism.NewFiles()
|
|
|
|
}
|
|
|
|
|
|
|
|
func Files() *photoprism.Files {
|
|
|
|
onceFiles.Do(initFiles)
|
|
|
|
|
|
|
|
return services.Files
|
|
|
|
}
|