gowebbuild/vendor/github.com/radovskyb/watcher/ishidden.go

13 lines
183 B
Go
Raw Normal View History

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