Use file~timestamp.ext for version (fixes #1010)

This commit is contained in:
Jakob Borg
2014-11-24 10:58:57 +01:00
parent 5a46cf1d48
commit 9a91cc232c
5 changed files with 108 additions and 21 deletions

View File

@@ -22,3 +22,8 @@ type Versioner interface {
}
var Factories = map[string]func(folderID string, folderDir string, params map[string]string) Versioner{}
const (
TimeFormat = "20060102-150405"
TimeGlob = "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]" // glob pattern matching TimeFormat
)