You want the FSEvents API. I’m pretty sure you can specify the start time for the events, and subdirectories are included. My app specifically discards events before I start monitoring.
Jim Crate > On Dec 21, 2019, at 11:09, Gabriel Zachmann via Cocoa-dev > <[email protected]> wrote: > > Is there a quick and easy way to check whether or not a directory tree has > changed? > > I am only interested in file additions or deletions, somewhere beneath a > specific root directory, > e.g., ~/Data/some_directory. > > However, I am interested in such changes between different invocations of my > program. > So, when the user adds a file somewhere in the directory tree while my > program is not running, I'd still like to detect that. > > Is there a quick and easy way to do this? > > Thanks a lot in advance. > Best regards, Gabriel > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/jim%40quevivadev.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
