File: rename-from-unwatched-overwrite

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 (19 lines) | stat: -rw-r--r-- 337 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
# Rename overwriting existing file.

mkdir /dir
mkdir /unwatch

touch /unwatch/file
touch /dir/rename

watch /dir
mv /unwatch/file /dir/rename

Output:
	remove /dir/rename
	create /dir/rename

	linux:     # No remove event for inotify; inotify just sends MOVE_SELF.
		create /dir/rename
	dragonfly: # TODO: this is broken.
		remove /dir