mirror of
https://github.com/charmbracelet/gum
synced 2024-06-15 20:15:08 +02:00
995bd04e38
This commit documents `gum table`, `gum file`, and `gum pager` with demonstration GIFs and sample scripts.
11 lines
193 B
Go
11 lines
193 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
|
|
}
|