Open martinatime opened 11 years ago
Option 3: Monitor file locations by hooking into the filesystem to be notified of changes to files (adds, updates, and deletes) and keep the catalog updated in real-time (similar to Dropbox and automatic backup tools). This would be a user choosable option that could be enabled and disabled. When enabled, it would immediately pre-scan the specified location(s) to initially prime the catalog. All subsequent changes in the filesystem would be reflected in the catalog as long as the application is running. We could either keep a small portion of the program active at all times that would continue to capture change events and apply them to the catalog even when the main application was not running. Or, the main application could automatically rescan the monitored locations when it is restarted.
I believe that is how iTunes works with its "Automatically Add To" folder (at least on Windows). While iTunes is running anything that is dropped into that folder is read and if possible imported. If iTunes is not running then when it is started it reads that folder.
I really like the idea but I'm not certain how much work effort would be involved in making this work especially in a cross-platform way.
I still think there would need to be a way to force a re-catalog/re-scan.
Much to ponder on this.
I've created a new enhancement item for the monitoring functionality. We can come back and add that in at a later time, if we want.
There needs to be a way to make sure that the cataloged files represent the files and their locations. This functionality should (user choosable):
The user should be alerted to all updates to the catalog from this process.
(Optional) The user should be allowed to choose whether to update/override the data in the catalog with the changes coming from the file that was scanned.