13 lines
183 B
Go
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
|
||
|
}
|