# Rename to unwatched dir.

# if runtime.GOOS == "netbsd" && isCI() {
# 	t.Skip("fails in CI; see #488") // TODO
# }

mkdir /dir
mkdir /unwatch
watch /dir

echo data >>/dir/file
mv /dir/file /unwatch/rename
echo data >>/unwatch/file   # Modify the file outside of the watched dir
touch /dir/file             # Recreate the file that was moved

Output:
    ItemCreated|ItemIsFile /dir/file  # cat data >/dir/file
    ItemIsFile|ItemModified /dir/file # ^
    ItemIsFile|ItemRenamed /dir/file  # mv /dir/file /unwatch/rename
    ItemCreated|ItemIsFile /dir/file  # touch /dir/file
