Hi,
Has anyone any ideas on how I can solve a problem I am working on. In my application users upload files to a directory and these files are then processed by the app. I am working on a way that my application will know that a new file has been placed in the directory and can then process it. Unfortunately all the processed files have to stay in the directory as well, so I cant just use a timer and process any file that is in the directory and then move them afterwards. I suppose I could keep a list of all the files that are in directory and check every file against this each time but that would be very time consuming. I cant think of any way to know if a file is new or not.
Any ideas would be most helpful,
damonh
Has anyone any ideas on how I can solve a problem I am working on. In my application users upload files to a directory and these files are then processed by the app. I am working on a way that my application will know that a new file has been placed in the directory and can then process it. Unfortunately all the processed files have to stay in the directory as well, so I cant just use a timer and process any file that is in the directory and then move them afterwards. I suppose I could keep a list of all the files that are in directory and check every file against this each time but that would be very time consuming. I cant think of any way to know if a file is new or not.
Any ideas would be most helpful,
damonh