1
0
mirror of https://github.com/go-task/task.git synced 2025-07-01 00:55:05 +02:00
Files
task/vendor/github.com/radovskyb/watcher/ishidden.go
Andrey Nering dfb804fe3f Update vendor/
2019-01-19 19:25:49 -02:00

13 lines
183 B
Go

// +build !windows
package watcher
import (
"path/filepath"
"strings"
)
func isHiddenFile(path string) (bool, error) {
return strings.HasPrefix(filepath.Base(path), "."), nil
}