Files
flagger/vendor/github.com/radovskyb/watcher/ishidden.go
T
2019-04-10 20:20:10 -04:00

13 lines
183 B
Go

// +build !windows
package watcher
import (
"path/filepath"
"strings"
)
func isHiddenFile(path string) (bool, error) {
return strings.HasPrefix(filepath.Base(path), "."), nil
}