How to use inotifywait to watch files within folder instead of folder
问题 I want to use inotifyway to monitor newly created or moved file within a folder But only the files. Let's say my folder is name "watched_folder_test" and I have a file name "toto.txt". If I use the mv command to move the file to the watched_folder_test I got notify that I want Let's say inside the watched_folder_test I have a folder named foo and I create a file name 'bar.txt". I got the notification that I want. But here is my issue. If I have a folder name foo outside of watched_folder_test