Let's say I have a file /local/content/en/abc.html
and I have a same file in /local/en/abc.html
. I want to add a watcher to /local
so that if /local/content/en/abc.html
gets deleted, it automatically deletes the /local/en/abc.html
file.
How can I achieve this? I have a Linux environment. This can be a bash file which would be watching/local
directory.