finished tag implementation

This commit is contained in:
ston1th 2019-08-24 14:27:58 +02:00
commit c3076c328a
28 changed files with 396 additions and 296 deletions

View file

@ -26,6 +26,7 @@ type Directory struct {
type Filesystem struct {
Base string
Log *log.ScanLog
// protects scan
m sync.RWMutex
@ -53,7 +54,7 @@ func NewFilesystem(base string) (fs *Filesystem, err error) {
err = errors.New("base dir '" + base + "' is not a directory")
return
}
fs = &Filesystem{Base: base, scan: make(map[string]struct{})}
fs = &Filesystem{Base: base, Log: log.NewScanLog(0), scan: make(map[string]struct{})}
return
}

View file

@ -25,6 +25,7 @@ var reserved = []string{
core.LoginURI,
core.LogoutURI,
core.SearchURI,
core.LogsURI,
core.TagsURI,
core.UserURI,
core.RawPrefix,