如何查看目录中的更改? [英] How to watch a directory for changes?

查看:78
本文介绍了如何查看目录中的更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在python核心中找不到任何东西可以做到这一点.谁能推荐图书馆或电池"来做到这一点?理想情况下,我希望这是可移植的,但如果仅适用于Unix(我的服务器),则可以.

Could not find anything in python core to do this. Can anyone recommend a library or "battery" to do this? Ideally I would like this to be portable but it's OK if it is available only for Unix (my server).

推荐答案

在Linux上,您可能会对pyinotify感兴趣

On Linux, you could be interested in pyinotify

  1. https://github.com/seb-m/pyinotify

其他相关库:

  1. http://people.gnome.org/~veillard/gamin/python. html
  2. Python FAM界面: http://python-fam.sourceforge.net/
  3. http://gorakhargosh.github.com/watchdog/
  1. http://people.gnome.org/~veillard/gamin/python.html
  2. Python FAM interface: http://python-fam.sourceforge.net/
  3. http://gorakhargosh.github.com/watchdog/

这篇关于如何查看目录中的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆