Amp\File\UvDriver classUvDriver implementsAmp\File\Driver

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Amp\UvReactor$reactor)
No documentation.
Type Parameter Description Default Value
Amp\UvReactor $reactor No documentation. none
open —public functionopen(string$path,string$mode)

Open a handle for the specified path

Type Parameter Description Default Value
string $path No documentation. none
string $mode No documentation. none
stat —public functionstat($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
exists —public functionexists($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
isdir —public functionisdir($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
isfile —public functionisfile($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
size —public functionsize($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
mtime —public functionmtime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
atime —public functionatime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
ctime —public functionctime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
lstat —public functionlstat(string$path)

Same as stat() except if the path is a link then the link's data is returned

Type Parameter Description Default Value
string $path The file system path to stat none

Create a symlink $link pointing to the file/directory located at $target

Type Parameter Description Default Value
string $target No documentation. none
string $link No documentation. none
rename —public functionrename(string$from,string$to)

Rename a file or directory

Type Parameter Description Default Value
string $from No documentation. none
string $to No documentation. none

Delete a file

Type Parameter Description Default Value
string $path No documentation. none
mkdir —public functionmkdir(string$path,int$mode =0644)

Create a director

Type Parameter Description Default Value
string $path No documentation. none
int $mode No documentation. 0644
rmdir —public functionrmdir(string$path)

Delete a directory

Type Parameter Description Default Value
string $path No documentation. none
scandir —public functionscandir(string$path)

Retrieve an array of files and directories inside the specified path

Dot entries are not included in the resulting array (i.e. "." and "..").

Type Parameter Description Default Value
string $path No documentation. none
chmod —public functionchmod(string$path,int$mode)

chmod a file or directory

Type Parameter Description Default Value
string $path No documentation. none
int $mode No documentation. none
chown —public functionchown(string$path,int$uid,int$gid)

chown a file or directory

Type Parameter Description Default Value
string $path No documentation. none
int $uid No documentation. none
int $gid No documentation. none
touch —public functiontouch(string$path)

Update the access and modification time of the specified path

If the file does not exist it will be created automatically.

Type Parameter Description Default Value
string $path No documentation. none
get —public functionget(string$path)

Buffer the specified file's contents

Type Parameter Description Default Value
string $path The file path from which to buffer contents none
put —public functionput(string$path,string$contents)

Write the contents string to the specified path.

Type Parameter Description Default Value
string $path The file path to which to $contents should be written none
string $contents The data to write to the specified $path none