$plugins
$plugins : array
Class MountManager.
Proxies methods to Filesystem (@see __call):
$plugins : array
$filesystems : \League\Flysystem\FilesystemInterface[]
write(string $path, string $contents, array $config = []) : bool
Write a new file.
string | $path | The path of the new file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
True on success, false on failure.
writeStream(string $path, resource $resource, array $config = []) : bool
Write a new file using a stream.
string | $path | The path of the new file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
If $resource is not a file handle.
True on success, false on failure.
update(string $path, string $contents, array $config = []) : bool
Update an existing file.
string | $path | The path of the existing file. |
string | $contents | The file contents. |
array | $config | An optional configuration array. |
True on success, false on failure.
updateStream(string $path, resource $resource, array $config = []) : bool
Update an existing file using a stream.
string | $path | The path of the existing file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
If $resource is not a file handle.
True on success, false on failure.
rename(string $path, string $newpath) : bool
Rename a file.
string | $path | Path to the existing file. |
string | $newpath | The new path of the file. |
Thrown if $newpath exists.
Thrown if $path does not exist.
True on success, false on failure.
putStream(string $path, resource $resource, array $config = []) : bool
Create a file or update if exists.
string | $path | The path to the file. |
resource | $resource | The file handle. |
array | $config | An optional configuration array. |
Thrown if $resource is not a resource.
True on success, false on failure.
get(string $path, \League\Flysystem\Handler $handler = null) : \League\Flysystem\Handler
Get a file/directory handler.
string | $path | The path to the file. |
\League\Flysystem\Handler | $handler | An optional existing handler to populate. |
Either a file or directory handler.
getAdapter(mixed $prefix) : \League\Flysystem\AdapterInterface
mixed | $prefix |
None found |
getConfig(mixed $prefix) : \League\Flysystem\Config
mixed | $prefix |
None found |
listFiles(mixed $directory, mixed $recursive) : array
mixed | $directory | |
mixed | $recursive |
None found |
listPaths(mixed $directory, mixed $recursive) : array
mixed | $directory | |
mixed | $recursive |
None found |
getWithMetadata(mixed $path, array $metadata) : array
mixed | $path | |
array | $metadata |
None found |
None found |
None found |
None found |
addPlugin(\League\Flysystem\PluginInterface $plugin) : $this
Register a plugin.
\League\Flysystem\PluginInterface | $plugin | The plugin to register. |
None found |
findPlugin(string $method) : \League\Flysystem\PluginInterface
Find a specific plugin.
string | $method |
None found |
invokePlugin(string $method, array $arguments, \League\Flysystem\FilesystemInterface $filesystem) : mixed
Invoke a plugin by method name.
string | $method | |
array | $arguments | |
\League\Flysystem\FilesystemInterface | $filesystem |
None found |
getPrefixAndPath(string $path) : string[]
string | $path |
[:prefix, :path]
None found |