RE: Evaluating FileAlterationMonitor

2024-01-30 Thread Thomas, Patrick R
Hi Gary, I would need something in the run() method of FileAlterationMonitor. I need the full list of new files to sort after it has looped through the observers, but before it does another pass through the folders. We are monitoring 100 different folders, each of which is for an external

Re: Evaluating FileAlterationMonitor

2024-01-30 Thread Gary Gregory
BTW, what are your findings that make WatchSerice not work well? Gary On Tue, Jan 30, 2024, 11:57 AM Gary D. Gregory wrote: > Patrick, > > ATM, I think you could create a subclass of the FileAlterationObserver and > re-implement FileAlterationObserver.checkAndNotify(). You'll have to decide >

Re: Evaluating FileAlterationMonitor

2024-01-30 Thread Gary D. Gregory
Patrick, ATM, I think you could create a subclass of the FileAlterationObserver and re-implement FileAlterationObserver.checkAndNotify(). You'll have to decide what to do in the case of file trees. Do you want to sort by timestamp for all files in the tree or just sort files in the current