Ignore hidden files
This commit is contained in:
1 parent
f081b97beb
commit
760decfb85
2 files changed
+2
-1
No files matched your search
@@ -45,6 +45,7 @@ func link(from, to string) chan struct{} {
|
||||
w := watcher.New()
|
||||
w.SetMaxEvents(1)
|
||||
w.FilterOps(watcher.Write, watcher.Rename, watcher.Move, watcher.Create, watcher.Remove)
|
||||
w.IgnoreHiddenFiles(true)
|
||||
|
||||
if err := w.AddRecursive(from); err != nil {
|
||||
fmt.Println(err.Error())
|
||||
|
||||
Reference in new issue
Block a user