\Psc\Library\IO\FIleMonitor

Summary

Methods
Properties
Constants
__construct()
stop()
$onTouch
$onModify
$onRemove
No constants found
No protected methods found
No protected properties found
N/A
tree()
foundFile()
onTouch()
onChangeFile()
monitor()
onRemoveFile()
$cache
$timer1
$timer2
$monitorType
$path
$extensions
$tree
$withDirectory
$frequency
N/A

Properties

$onTouch

$onTouch : \Closure

Type

\Closure —

$onModify

$onModify : \Closure

Type

\Closure —

$onRemove

$onRemove : \Closure

Type

\Closure —

$cache

$cache : array

Type

array

$timer1

$timer1 : string

Type

string

$timer2

$timer2 : string

Type

string

$monitorType

$monitorType : int

1: file 2: directory

Type

int

$path

$path : string

Type

string

$tree

$tree : bool

Type

bool

$withDirectory

$withDirectory : bool

Type

bool

$frequency

$frequency : int|float

Type

int|float

Methods

__construct()

__construct(string  $path, array|string  $extensions = '*', bool  $tree = true, bool  $withDirectory = false, int|float  $frequency = 1) : mixed

Parameters

string $path
array|string $extensions
bool $tree
bool $withDirectory
int|float $frequency

Returns

mixed —

stop()

stop() : void

tree()

tree(string  $path) : void

Parameters

string $path

foundFile()

foundFile(\SplFileInfo  $fileInfo) : void

Parameters

\SplFileInfo $fileInfo

onTouch()

onTouch(\SplFileInfo  $info) : void

Parameters

\SplFileInfo $info

onChangeFile()

onChangeFile(\SplFileInfo  $info) : void

Parameters

\SplFileInfo $info

monitor()

monitor() : void

onRemoveFile()

onRemoveFile(\SplFileInfo  $info) : void

Parameters

\SplFileInfo $info