Basically i want to do a check wherein the file that needs to be picked up from the source to ensure they are still not being written into and then pull the file and move to destination which i have done
So i want to add a logic to check in java presentime-filetime>5 minutes
How can i go about doing this in a java function and then process the file to a different location