some improvements

This commit is contained in:
ston1th 2019-08-26 19:58:31 +02:00
commit 58a0dc36d5
25 changed files with 233 additions and 105 deletions

View file

@ -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
}