I am trying to use the Java 7 WatchService to watch for new zip files in a specific directory and extracting them after the file is completely written. I got the notification that the file is created but now I have to wait until this file is completely written so I can actually extract it. Any suggestions how to do this? Is there a good way/best practice to do this or should I simple retry to open/validate the zip until this success?
Best regards, Chris