I am using FSW(FileSystemWatcher) in my Unity project, but end up with only catching the Changed Events even if I am creating or deleting a new file. Sometimes even nothing can be detected from all the file operations.
Something more weird is that when I create a new empty folder, all the operations in this new folder can be correctly detected. But for the existing folder with resource files it will have problem.
Also when I try outside Unity in a new C# Console App for the same folder facing problem previously, everything works fine. The problem only occurs in Unity.
The following is part of my code.
Does anybody have some clues about it?