\Psc\Library\IO\FIleFile

Summary

Methods
Properties
Constants
getInstance()
getContents()
open()
watch()
__construct()
No public properties found
No constants found
No protected methods found
$instance
N/A
registerOnFork()
$monitors
N/A

Properties

$monitors

$monitors : \Psc\Library\IO\FIle\Monitor[]

Type

Monitor[]

Methods

getInstance()

getInstance() : static

Returns

static —

getContents()

getContents(string  $path) : \Psc\Core\Coroutine\Promise

Parameters

string $path

Returns

\Psc\Core\Coroutine\Promise —

open()

open(string  $path, string  $mode) : \Psc\Core\Stream\Stream

Parameters

string $path
string $mode

Returns

\Psc\Core\Stream\Stream —

watch()

watch(string  $path, array|string  $extensions = '*', bool  $tree = true, bool  $withDirectory = false, int|float  $frequency = 1) : \Psc\Library\IO\FIle\Monitor

Parameters

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

Returns

\Psc\Library\IO\FIle\Monitor —

__construct()

__construct() : mixed

Returns

mixed —

registerOnFork()

registerOnFork() : void