bubbles/filepicker/hidden_unix.go
Maas Lalani 3372cf1aea
Filepicker Bubble (#343)
* feat: filepicker bubble

* fix: bump bubbles to 1.16

* fix: allow customization of empty state

* fix: change `Enter` to `Open`

* fix: lint gomnd

* fix: don't send msg, instead check if this update caused a selection
2023-03-06 10:59:59 -05:00

12 lines
218 B
Go

//go:build !windows
// +build !windows
package filepicker
import "strings"
// IsHidden reports whether a file is hidden or not.
func IsHidden(file string) (bool, error) {
return strings.HasPrefix(file, "."), nil
}