filesystem watcher

securonic

Active member
Joined
Aug 29, 2010
Messages
34
Location
Midlands Uk
Programming Experience
Beginner
hi everyone,

i have been working with the filesystem watcher and have come up against a problem. i have a background worker which carries out a process on each new file event but i am unable to process multiple files landing in a directory at once. i think i need some sort of queue to process the files in sequence without the watcher trying to call while the background worker is still active. can i create threads on the fly as needed to hold my filepaths while a background worker is active?
 
yes perfect the Queue(t) class worked perfectly. here was me trying to reinvent the wheel for a couple of days and now i realise they have a tool for the job. much appreciated! i was starting to get a head ache from that
 
Back
Top