Yigang Wu
Yigang Wu

Reputation: 3592

How to dectect new or modified files in Mac OSX

In Windows OS, MS provides ReadDirectoryChangesW and FindFirstChangeNotification API to dectect new or modified file, does the Mac OSX provide equal function as well?

Upvotes: 5

Views: 3667

Answers (3)

user1327875
user1327875

Reputation: 31

See http://pypi.python.org/pypi/MacFSEvents/0.2.1 for a Python implementation.

Upvotes: 3

Mark Stock
Mark Stock

Reputation: 1733

In Mac OS X Leopard monitor file changes with the File System Events API

Upvotes: 6

cobbal
cobbal

Reputation: 70713

OS X provides a framework called FSEvents, I don't know much about the specifics of it though.

Upvotes: 2

Related Questions