some improvements
This commit is contained in:
parent
3c5be25cb3
commit
58a0dc36d5
25 changed files with 233 additions and 105 deletions
|
|
@ -26,7 +26,6 @@ type Directory struct {
|
|||
|
||||
type Filesystem struct {
|
||||
Base string
|
||||
Log *log.ScanLog
|
||||
|
||||
// protects scan
|
||||
m sync.RWMutex
|
||||
|
|
@ -54,7 +53,7 @@ func NewFilesystem(base string) (fs *Filesystem, err error) {
|
|||
err = errors.New("base dir '" + base + "' is not a directory")
|
||||
return
|
||||
}
|
||||
fs = &Filesystem{Base: base, Log: log.NewScanLog(0), scan: make(map[string]struct{})}
|
||||
fs = &Filesystem{Base: base, scan: make(map[string]struct{})}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ var reserved = []string{
|
|||
core.UserURI,
|
||||
core.RawPrefix,
|
||||
core.IndexPrefix,
|
||||
core.ReindexPrefix,
|
||||
core.RetagPrefix,
|
||||
core.UploadPrefix,
|
||||
core.NewPrefix,
|
||||
core.MovePrefix,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue