mirror of
https://github.com/charmbracelet/gum
synced 2024-05-04 07:23:15 +02:00
11 lines
192 B
Go
11 lines
192 B
Go
//go:build !windows
|
|
|
|
package file
|
|
|
|
import "strings"
|
|
|
|
// IsHidden reports whether a file is hidden or not
|
|
func IsHidden(file string) (bool, error) {
|
|
return strings.HasPrefix(file, "."), nil
|
|
}
|