How to dectect new or modified files in Mac OSX

ぐ巨炮叔叔 提交于 2019-11-29 22:21:26

问题


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


回答1:


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




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/645321/how-to-dectect-new-or-modified-files-in-mac-osx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!