2022-10-01 00:40:10 +02:00
|
|
|
//go:build !windows
|
|
|
|
|
|
|
|
package file
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
2022-10-02 21:55:14 +02:00
|
|
|
// IsHidden reports whether a file is hidden or not.
|
2022-10-01 00:40:10 +02:00
|
|
|
func IsHidden(file string) (bool, error) {
|
|
|
|
return strings.HasPrefix(file, "."), nil
|
|
|
|
}
|