Cloud
interface Cloud implements Filesystem
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.
Get the URL for the file at the given path.
Details
in
Filesystem at line 27
bool
exists(string $path)
Determine if a file exists.
in
Filesystem at line 37
string
get(string $path)
Get the contents of a file.
in
Filesystem at line 47
bool
put(string $path, string|resource $contents, string $visibility = null)
Write the contents of a file.
in
Filesystem at line 55
string
getVisibility(string $path)
Get the visibility for the given path.
in
Filesystem at line 64
void
setVisibility(string $path, string $visibility)
Set the visibility for the given path.
in
Filesystem at line 73
int
prepend(string $path, string $data)
Prepend to a file.
in
Filesystem at line 82
int
append(string $path, string $data)
Append to a file.
in
Filesystem at line 90
bool
delete(string|array $paths)
Delete the file at a given path.
in
Filesystem at line 99
bool
copy(string $from, string $to)
Copy a file to a new location.
in
Filesystem at line 108
bool
move(string $from, string $to)
Move a file to a new location.
in
Filesystem at line 116
int
size(string $path)
Get the file size of a given file.
in
Filesystem at line 124
int
lastModified(string $path)
Get the file's last modification time.
in
Filesystem at line 133
array
files(string|null $directory = null, bool $recursive = false)
Get an array of all files in a directory.
in
Filesystem at line 141
array
allFiles(string|null $directory = null)
Get all of the files from the given directory (recursive).
in
Filesystem at line 150
array
directories(string|null $directory = null, bool $recursive = false)
Get all of the directories within a given directory.
in
Filesystem at line 158
array
allDirectories(string|null $directory = null)
Get all (recursive) of the directories within a given directory.
in
Filesystem at line 166
bool
makeDirectory(string $path)
Create a directory.
in
Filesystem at line 174
bool
deleteDirectory(string $directory)
Recursively delete a directory.
at line 13
string
url(string $path)
Get the URL for the file at the given path.