As far as I know, this isn't possible in Java 6. Your best shot is to go for Apache VFS.
How to listen on file directory if file changed/added/deletd in java 6
-
24-06-2023 - |
سؤال
I googled for it and found java 7 has inbuilt support for it For example :- http://java.dzone.com/news/how-watch-file-system-changes
But did not get anywhere how to support it on java 6?
Some guys at Directory listener in Java suggesetd for Jnotify, Apache VFS etc I can go for them provided java 6 does not provide something off the shelf?
المحلول
لا تنتمي إلى StackOverflow