推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ppj
V2EX  ›  Python

Python 每日一练: watchdog 文件目录事件监控

  •  
  •   ppj · Sep 14, 2022 · 2692 views
    This topic created in 1361 days ago, the information mentioned may be changed or developed.

    监控指定目录下的文件或文件夹的变动

    watchdog 是一款小软件,可以监控文件和目录是否发生变化,watchdog 就是一款可以监控文件系统变化的第三方模块,当被监视的区域发生文件或目录的创建,修改,或者删除时,就可以引发特定的事件,我们只需要编写针对这些事件的函数即可处理这些变化。

    代码请点击 => 代码

    3 replies    2022-09-15 09:01:01 +08:00
    ErwinCheung
        1
    ErwinCheung  
       Sep 14, 2022
    牛呀
    zeuss
        2
    zeuss  
       Sep 14, 2022
    用过,NFS 挂载目录略有不同
    jdz
        3
    jdz  
       Sep 15, 2022
    跟 inotify 功能一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 13:08 · PVG 21:08 · LAX 06:08 · JFK 09:08
    ♥ Do have faith in what you're doing.