Linux下有pyinotify,Windows下是否有类似的基于事件的文件监控方案?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Windows provides APIs FindFirstFileChange and FindNextFileChange, which can be packaged by yourself with ctypes.
FindFirstFileChange
FindNextFileChange
ctypes
But I recommend you to use a library named watchdog, which is a cross-platform implementation:
watchdog
pypi: http://pypi.python.org/pypi/watchdog github repo: https://github.com/gorakhargosh/watch...
Windows provides APIs
FindFirstFileChange
andFindNextFileChange
, which can be packaged by yourself withctypes
.But I recommend you to use a library named
watchdog
, which is a cross-platform implementation:pypi: http://pypi.python.org/pypi/watchdog
github repo: https://github.com/gorakhargosh/watch...