File: remove-while-watching-parent

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 (29 lines) | stat: -rw-r--r-- 504 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
24
25
26
27
28
29
# Remove while also watching parent.

# TODO: kind of a mess on Windows; sends something along the lines
# of:
#
#   create    /abc
#   write     /abc
#   write     /abc/def
#   write     /abc/def
#   remove    /abc/def
#   write     /abc
#   remove    /abc
#   remove    /abc
#
# But sometimes there's one or two more or less.
skip windows

watch /
mkdir -p /abc/def/ghi
watch /abc
rm -r /abc

Output:
	create  /abc
	remove  /abc/def
	remove  /abc

	dragonfly:  # TODO: no remove events?
		create  /abc