finished tag implementation
This commit is contained in:
parent
b3b62af3a4
commit
c3076c328a
28 changed files with 396 additions and 296 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ var reserved = []string{
|
|||
core.LoginURI,
|
||||
core.LogoutURI,
|
||||
core.SearchURI,
|
||||
core.LogsURI,
|
||||
core.TagsURI,
|
||||
core.UserURI,
|
||||
core.RawPrefix,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue