Cloud
interface Cloud implements Filesystem (View source)
Methods
Write the contents of a file.
Set the visibility for the given path.
Get an array of all files in a directory.
Get all of the files from the given directory (recursive).
Get all of the directories within a given directory.
Get all (recursive) of the directories within a given directory.
Details
in Filesystem at line line 47
bool
put(
string $path,
string|resource $contents,
string $visibility = null)
Write the contents of a file.
in Filesystem at line line 55
string
getVisibility(
string $path)
Get the visibility for the given path.
in Filesystem at line line 64
void
setVisibility(
string $path,
string $visibility)
Set the visibility for the given path.
in Filesystem at line line 124
int
lastModified(
string $path)
Get the file's last modification time.
in Filesystem at line line 133
array
files(
string|null $directory = null,
bool $recursive = false)
Get an array of all files in a directory.
in Filesystem at line line 141
array
allFiles(
string|null $directory = null)
Get all of the files from the given directory (recursive).
in Filesystem at line line 150
array
directories(
string|null $directory = null,
bool $recursive = false)
Get all of the directories within a given directory.
in Filesystem at line line 158
array
allDirectories(
string|null $directory = null)
Get all (recursive) of the directories within a given directory.
in Filesystem at line line 174
bool
deleteDirectory(
string $directory)
Recursively delete a directory.