photoprism/pkg/fs/done.go
Michael Mayer 24cfa1aea2 Backend: Refactor file indexing / skipping
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-07-18 20:58:35 +02:00

18 lines
223 B
Go

package fs
type Status int8
const (
Found Status = 1
Processed Status = 2
)
type Done map[string]Status
func (s Status) Exists() bool {
return s > 0
}
func (s Status) Processed() bool {
return s >= Processed
}