Ignore hidden files

This commit is contained in:
trading_peter 2022-12-15 12:17:04 +01:00
parent f081b97beb
commit 760decfb85
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ func link(from, to string) chan struct{} {
w := watcher.New() w := watcher.New()
w.SetMaxEvents(1) w.SetMaxEvents(1)
w.FilterOps(watcher.Write, watcher.Rename, watcher.Move, watcher.Create, watcher.Remove) w.FilterOps(watcher.Write, watcher.Rename, watcher.Move, watcher.Create, watcher.Remove)
w.IgnoreHiddenFiles(true)
if err := w.AddRecursive(from); err != nil { if err := w.AddRecursive(from); err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())

View File

@ -82,7 +82,7 @@ func main() {
app := &cli.App{ app := &cli.App{
Name: "gowebbuild", Name: "gowebbuild",
Usage: "All in one tool to build web frontend projects.", Usage: "All in one tool to build web frontend projects.",
Version: "4.1.0", Version: "4.1.1",
Authors: []*cli.Author{{ Authors: []*cli.Author{{
Name: "trading-peter (https://github.com/trading-peter)", Name: "trading-peter (https://github.com/trading-peter)",
}}, }},