Skip to content

Commit

Permalink
适配新版watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKingOfDuck committed Dec 1, 2024
1 parent d8d3a7a commit 1474c9b
Show file tree
Hide file tree
Showing 30 changed files with 8 additions and 5,717 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@

# 更新:


**感谢[moyuwa](https://github.com/moyuwa)反馈的Bug,如有问题或修改意见 请点击===>[问题反馈](https://github.com/TheKingOfDuck/FileMonitor/issues)**

2024-12-01:
* fixed bug

2020-06-25:
* 优化二进制文件,使其兼容所有unix的系统(macOS,linux,ubantu,centos,etc)。
* 新增参数模式,可执行`filemon -h`相关参数说明。其中-p参数是监控的路径,为必须项,其他参数可选。
Expand Down
2 changes: 1 addition & 1 deletion fileMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def getOpts():
event_handler.unspyDirs = unspyDir.split(',')

observer = Observer()
observer.schedule(event_handler, spyDir, True)
observer.schedule(event_handler, spyDir)
observer.start()

try:
Expand Down
2 changes: 1 addition & 1 deletion filemon
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if __name__ == "__main__":
event_handler.unspyDirs = unspyDir.split(',')

observer = Observer()
observer.schedule(event_handler, spyDir, True)
observer.schedule(event_handler, spyDir)
observer.start()

try:
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ def getDir():
#break



1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
watchdog==6.0.0
17 changes: 0 additions & 17 deletions watchdog/__init__.py

This file was deleted.

Loading

0 comments on commit 1474c9b

Please sign in to comment.