File: ishidden.go

package info (click to toggle)
golang-github-radovskyb-watcher 1.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: makefile: 3
file content (12 lines) | stat: -rw-r--r-- 183 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
// +build !windows

package watcher

import (
	"path/filepath"
	"strings"
)

func isHiddenFile(path string) (bool, error) {
	return strings.HasPrefix(filepath.Base(path), "."), nil
}