summaryrefslogtreecommitdiff
path: root/files/types.go
blob: 87ae6e1aeebdab6685a1c7a1f4cc63bcef8949fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package files

import (
	"errors"
	"time"
)

var (
	ReencodeNotNeeded = errors.New("file is up to date")
	FileMoved         = errors.New("file was moved")
	ReencodeNeeded    = errors.New("file needs to be reencoded")
)

type FileInfo struct {
	AbsPath string    `json:"abspath"`
	Modtime time.Time `json:"modtime"`
	Encoder string    `json:"encoder"`
	Process bool      `json:"process"`
}