tractor.dev/toolkit-go@v0.0.0-20241010005851-214d91207d07/engine/fs/watchfs/watcher/ishidden.go (about) 1 // +build !windows 2 3 package watcher 4 5 import ( 6 "path/filepath" 7 "strings" 8 ) 9 10 func isHiddenFile(path string) (bool, error) { 11 return strings.HasPrefix(filepath.Base(path), "."), nil 12 }