File: unreadable-file

package info (click to toggle)
golang-fsnotify 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 716 kB
  • sloc: ansic: 98; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Create a watcher in a directory with an unreadable file.

skip windows # TODO: figure out how to make a file unreadable

touch /unreadable
chmod 0 /unreadable
touch /file
watch /

echo hello >>/file
rm /file
rm /unreadable

Output:
	write     /file
	remove    /file
	remove    /unreadable

	# We never set up a watcher on the unreadable file, so we don't get the
	# remove.
	kqueue:
		write    /file
		remove   /file