We are using java.nio file watch service.
Problem is with the rename detection. For rename , the watch service sends two events delete and create. We consider it as batch and if it is within a certain timespan we consider it as a rename event.
Is there any other way/logic which can be used to capture the rename event ?
Probably its a duplicate with another question, but there was no conclusive answers being given in that thread. And also technology changes a lot in 3-4 years. So was wondering if anyone has solved this problem.