how to check for the new file created in a directory
posted 8 years ago
I need a very simple process that listens on a directory.When a new file is created on that directory,
the new file has to be copied to a remote location.
I have created the listener but how can I check for new file from the set of files in directory using java code. There is no creationdate method in java file api.There is only one lastmodifed() method for the java file metadata operations.