gunk-dev/the-valley

wake_other.go

source171dbbb226c0main's published tip history
392 bytes
1//go:build !linux
2
3package main
4
5import "errors"
6
7// wakeSupported says whether watch can be given --woken-by here. Watching a
8// wake directory needs Linux's inotify. Anywhere else, watch passes at its
9// interval, as it does without the flag.
10const wakeSupported = false
11
12func watchDir(string) (watcher, error) {
13 return nil, errors.New("watching a wake directory needs Linux's inotify")
14}