Its nearly impossible to tell the problem unless you provide the code that scans the folders/directories for new files.
I dont think anything on the OS/java level will land you into this situation.
By the way, what is the meaning of the statement:
the thread doesn't recognize a file
You mean that the file does not come in the result of listFiles() method call on the directory?