Is there a way to detect file renaming using Java? (NIO\'s WatchService API or any other) From what I\'ve seen when renaming a file two separate events occur - ENTRY_DELETE
I think the jnotify would be useful in your case.