chef 3808 Posted July 11, 2015 Posted July 11, 2015 @@ebr or @@Luke I'm currently trying to create a helpful plugin, which will attempt to better sort physical media files over several computer drives. I need to create a Scheduled Task which monitors a folder. Is there a timer built into the Plugin API that I can use, or would creating my own Threading Timer (for a folder monitor) be a better coarse of action? I'm not interested in adding CPU usage if not necessary.
ebr 15662 Posted July 11, 2015 Posted July 11, 2015 a "scheduled task" which "monitors a folder" doesn't really make sense to me. A scheduled task would be something that does some work on a routine schedule but "monitoring" a folder sounds like something that needs to hook into the file system directory watcher api. If you want a true monitor, you don't need a scheduled task.
chef 3808 Posted July 11, 2015 Author Posted July 11, 2015 (edited) Excellent. Is the File System Directory Watcher an Emby thing? Or is this a class library found in the OS? I I think I should be able to trigger tasks after my plugin does it's thing, using the "ScheduledTaskWorker". Edited July 11, 2015 by chef
ebr 15662 Posted July 11, 2015 Posted July 11, 2015 It is a function of the underlying OS but we abstract it to be cross-platform (not sure it works on all of them).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now