FilesystemAdapter
class FilesystemAdapter implements Filesystem, Cloud (View source)
Methods
Create a new filesystem adapter instance.
Determine if a file exists.
Get the contents of a file.
Write the contents of a file.
Get the visibility for the given path.
Set the visibility for the given path.
Prepend to a file.
Append to a file.
Delete the file at a given path.
Copy a file to a new location.
Move a file to a new location.
Get the file size of a given file.
Get the mime-type of a given file.
Get the file's last modification time.
Get the URL for the file at 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.
Create a directory.
Recursively delete a directory.
Get the Flysystem driver.
Pass dynamic methods call onto Flysystem.
Details
at line line 32
void
__construct(
FilesystemInterface $driver)
Create a new filesystem adapter instance.
at line line 73
bool
put(
string $path,
string|resource $contents,
string $visibility = null)
Write the contents of a file.
at line line 110
void
setVisibility(
string $path,
string $visibility)
Set the visibility for the given path.
at line line 253
array
files(
string|null $directory = null,
bool $recursive = false)
Get an array of all files in a directory.
at line line 266
array
allFiles(
string|null $directory = null)
Get all of the files from the given directory (recursive).
at line line 278
array
directories(
string|null $directory = null,
bool $recursive = false)
Get all of the directories within a given directory.
at line line 291
array
allDirectories(
string|null $directory = null)
Get all (recursive) of the directories within a given directory.
at line line 378
mixed
__call(
string $method,
array $parameters)
Pass dynamic methods call onto Flysystem.