32 $result = compact(
'contents',
'type',
'path');
34 if ($visibility =
$config->get(
'visibility')) {
35 $result[
'visibility'] = $visibility;
126 return compact(
'visibility');
134 return [
'path' => $dirname,
'type' =>
'dir'];
An exception for terminatinating execution or to throw for unit testing.
read($path)
Read a file.array|false
rename($path, $newpath)
Rename a file.bool
getTimestamp($path)
Get the timestamp of a file.array|false
getMetadata($path)
Get all the meta data of a file or directory.array|false
setVisibility($path, $visibility)
Set the visibility for a file.array|false file meta data
getMimetype($path)
Get the mimetype of a file.array|false
listContents($directory='', $recursive=false)
List contents of a directory.array
has($path)
Check whether a file is present.
createDir($dirname, Config $config)
Create a directory.array|false
write($path, $contents, Config $config)
Write a new file.array|false false on failure file meta data on success
getVisibility($path)
Get the visibility of a file.array|false
update($path, $contents, Config $config)
Update a file.array|false false on failure file meta data on success
deleteDir($dirname)
Delete a directory.bool
getSize($path)
Get the size of a file.array|false