\Imi\HotUpdate\MonitorInotify

Summary

Methods
Properties
Constants
__construct()
isChanged()
getChangedFiles()
No public properties found
No constants found
init()
isExclude()
$includePaths
$excludePaths
$mask
N/A
No private methods found
$paths
$handler
$changedFiles
N/A

Properties

$includePaths

$includePaths : array

包含的路径

Type

array

$excludePaths

$excludePaths : array

排除的路径

Type

array

$mask

$mask : integer

inotify_add_watch() mask参数

Type

integer

$paths

$paths : array

目录们

Type

array

$handler

$handler : resource

inotify_init() 返回值

Type

resource

$changedFiles

$changedFiles : array<mixed,string>

更改的文件们

Type

array<mixed,string>

Methods

__construct()

__construct(array  $includePaths, array  $excludePaths = array()) 

构造方法

Parameters

array $includePaths

包含的路径

array $excludePaths

排除的路径

isChanged()

isChanged() : boolean

检测文件是否有更改

Returns

boolean

getChangedFiles()

getChangedFiles() : array

获取变更的文件们

Returns

array

init()

init() : void

初始化

isExclude()

isExclude(string  $filePath) : boolean

判断路径是否被排除

Parameters

string $filePath

Returns

boolean