Amp\File\BlockingDriver class BlockingDriver implements Amp\File\Driver

Summary

Properties

Methods

Methods

open — public function open(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 function stat($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
exists — public function exists($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
size — public function size($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
isdir — public function isdir($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
isfile — public function isfile($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
mtime — public function mtime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
atime — public function atime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
ctime — public function ctime($path)
No documentation.
Type Parameter Description Default Value
mixed $path No documentation. none
lstat — public function lstat(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 function rename(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 function mkdir(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 function rmdir(string $path)

Delete a directory

Type Parameter Description Default Value
string $path No documentation. none
scandir — public function scandir(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 function chmod(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 function chown(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 function touch(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 function get(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 function put(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