Bump reva
This commit is contained in:
+1
@@ -39,6 +39,7 @@ type Options struct {
|
||||
// a revision when the file is changed.
|
||||
EnableFSRevisions bool `mapstructure:"enable_fs_revisions"`
|
||||
|
||||
ScanFS bool `mapstructure:"scan_fs"`
|
||||
WatchFS bool `mapstructure:"watch_fs"`
|
||||
WatchType string `mapstructure:"watch_type"`
|
||||
WatchPath string `mapstructure:"watch_path"`
|
||||
|
||||
+2
@@ -144,6 +144,8 @@ func New(lu node.PathLookup, bs Blobstore, um usermapper.Mapper, trashbin *trash
|
||||
if o.WatchFS {
|
||||
go t.watcher.Watch(watchPath)
|
||||
go t.workScanQueue()
|
||||
}
|
||||
if o.ScanFS {
|
||||
go func() {
|
||||
_ = t.WarmupIDCache(o.Root, true, false)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user