Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 889
Yigang Wu Avatar asked Mar 14 '09 03:03

Yigang Wu


People also ask

How do I find recently modified files?

How to find the date of modified files. Press the Windows key + E on the keyboard to open File Explorer. On the left side-scrolling menu, select the drive or folder that you want to view the last modified date(s) (A) for the contents.

How can I tell when my Mac was last modified?

But yes, just go to the Finder, press Command + F to bring up a Finder window, then change the filters to search "This Mac", and "Last modified date" is "after" <your date> to see all your modified documents.


2 Answers

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

like image 190
Mark Stock Avatar answered Sep 23 '22 20:09

Mark Stock


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

like image 44
user1327875 Avatar answered Sep 22 '22 20:09

user1327875