Closed achengscode closed 10 years ago
FileSysMonitor is going to invoke callback when a file in sync folder is updated and ready for upload. But if the file is updated by our Client application itself. This upload should not trigger a upload.
So when the FileSysPerformer updates a file according to Master Server's command. This file do not need to be uploads. In this case, FileSysPerformer will invoke startIgnoreFile(filename) before write the file, and then invoke stopIgnoreFile(filename).
Okay, thanks for that.
I had another question, is the startIgnore and stopIgnore something that is permanent (that is, the filename is stored to a file) or is it temporary (that is, if marked for ignore, then shutdown client, it is now not ignored)
Please make it temporary. Use a ArrayList to keep it in memory will be fine. FileSysMonitor starts right after the Client Application runs, until it quits. Keep ignore list in RAM is enough.
Thank you very much Eli!
Could you please clarify what those two methods are supposed to do?
I'm not 100% sure what it is they do.
Thanks.