Backend: Move reusable packages to pkg/

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-01-12 14:00:56 +01:00
parent fbea88bd74
commit f8a45b14d9
85 changed files with 5244 additions and 5239 deletions

View File

@@ -12,14 +12,14 @@ import (
"syscall"
"github.com/photoprism/photoprism/internal/event"
"github.com/photoprism/photoprism/internal/file"
"github.com/photoprism/photoprism/pkg/fs"
"github.com/sevlyar/go-daemon"
)
var log = event.Log
func childAlreadyRunning(filePath string) (pid int, running bool) {
if !file.Exists(filePath) {
if !fs.FileExists(filePath) {
return pid, false
}