hidden_unix.go

 1//go:build !windows
 2// +build !windows
 3
 4package filepicker
 5
 6import "strings"
 7
 8// IsHidden reports whether a file is hidden or not.
 9func IsHidden(file string) (bool, error) {
10	return strings.HasPrefix(file, "."), nil
11}