|
You may persist/save a log file with a data that represents the exact length/size of those files inside the folders/subfolders.
Implementing it with thread is safe. you may use sleep(long hour) method to make the thread fall a sleep every hour. After every interval, check the files inside those folders if their size have been changed by comparing them with the data inside that log file.
If yes, then do the copy....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|