2017 © Pedro Peláez
 

library inotify

recursive monitor file and directory based on inotify-tools

image

aizuyan/inotify

recursive monitor file and directory based on inotify-tools

  • Friday, May 12, 2017
  • by aizuyan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

inotify

文件、文件夹递归监控变动, (*1)

使用例子

$obj = new Aizuyan\Inotify\Inotify();

$obj->addExclude([
    "/swp$/",
    "/swpx$/",
    "/~$/",
    "/\d$/",
    "/swx$/"
])->setCallback(function ($item){
    echo $item["event"] . " 文件 " . $item["file"] . "\n";
})->addPaths("/datas/git/")->start();

运行之后修改保存文件的时候会显示下面的内容:, (*2)

CREATE 文件 /datas/git/inotify/README.md
MODIFY 文件 /datas/git/inotify/README.md
MOVED_TO 文件 /datas/git/aizuyan/pinyin-1/README.md
DELETE 文件 /datas/git/aizuyan/pinyin-1/LICENSE
。。。。。。

安装

要使用这个功能,需要在机器上安装inotify-tools,只能在linux\unix上使用, (*3)

yum install inotify-tools

The Versions

12/05 2017

dev-master

9999999-dev

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v2.0.1

2.0.1.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v2.1.0

2.1.0.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v3.0.0

3.0.0.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v2.0.0

2.0.0.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v1.1.1

1.1.1.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v1.1.2

1.1.2.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v1.0.1

1.0.1.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛

13/10 2016

v1.0.0

1.0.0.0

recursive monitor file and directory based on inotify-tools

  Sources   Download

MIT

The Requires

 

by 燕睿涛