Class FilesystemAdapter
| package |
Default |
|---|
__construct(\League\Flysystem\FilesystemInterface $driver)
\League\Flysystem\FilesystemInterface
addPlugin(\League\Flysystem\PluginInterface $plugin) : \League\Flysystem\FilesystemInterface
\League\Flysystem\PluginInterfaceThe plugin to register.
\League\Flysystem\FilesystemInterface
copy(string $path, string $newpath) : boolean
| Throws |
|
|---|
stringPath to the existing file.
stringThe new path of the file.
booleanTrue on success, false on failure.
createDir(string $dirname, array $config = array()) : boolean
stringThe name of the new directory.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
delete(string $path) : boolean
| Throws |
|
|---|
string
booleanTrue on success, false on failure.
deleteDir(string $dirname) : boolean
string
booleanTrue on success, false on failure.
get(string $path, \Handler $handler = null) : \Handler
| deprecated |
|---|
stringThe path to the file.
\HandlerAn optional existing handler to populate.
\HandlerEither a file or directory handler.
getAdapter()
getMetadata(string $path) : array|false
| Throws |
|
|---|
stringThe path to the file.
array|falseThe file metadata or false on failure.
getMimetype(string $path) : string|false
| Throws |
|
|---|
stringThe path to the file.
string|falseThe file mime-type or false on failure.
getSize(string $path) : integer|false
| Throws |
|
|---|
stringThe path to the file.
integer|falseThe file size or false on failure.
getTimestamp(string $path) : string|false
| Throws |
|
|---|
stringThe path to the file.
string|falseThe timestamp or false on failure.
getVisibility(string $path) : string|false
| Throws |
|
|---|
stringThe path to the file.
string|falseThe visibility (public|private) or false on failure.
has(string $path) : boolean
string
boolean
listContents(string $directory = '', boolean $recursive = false) : array
stringThe directory to list.
booleanWhether to list recursively.
arrayA list of file metadata.
put(string $path, string $contents, array $config = array()) : boolean
stringThe path to the file.
stringThe file contents.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
putStream(string $path, resource $resource, array $config = array()) : boolean
| Throws |
|
|---|
stringThe path to the file.
resourceThe file handle.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
read(string $path) : string|false
| Throws |
|
|---|
stringThe path to the file.
string|falseThe file contents or false on failure.
readAndDelete(string $path) : string|false
| Throws |
|
|---|
stringThe path to the file.
string|falseThe file contents, or false on failure.
readStream(string $path) : resource|false
| Throws |
|
|---|
stringThe path to the file.
resource|falseThe path resource or false on failure.
rename(string $path, string $newpath) : boolean
| Throws |
|
|---|
stringPath to the existing file.
stringThe new path of the file.
booleanTrue on success, false on failure.
setVisibility(string $path, string $visibility) : boolean
| Throws |
|
|---|
stringThe path to the file.
stringOne of 'public' or 'private'.
booleanTrue on success, false on failure.
update(string $path, string $contents, array $config = array()) : boolean
| Throws |
|
|---|
stringThe path of the existing file.
stringThe file contents.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
updateStream(string $path, resource $resource, array $config = array()) : boolean
| Throws |
|
|---|
stringThe path of the existing file.
resourceThe file handle.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
write(string $path, string $contents, array $config = array()) : boolean
| Throws |
|
|---|
stringThe path of the new file.
stringThe file contents.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
writeStream(string $path, resource $resource, array $config = array()) : boolean
| Throws |
|
|---|
stringThe path of the new file.
resourceThe file handle.
arrayAn optional configuration array.
booleanTrue on success, false on failure.
driver : \League\Flysystem\FilesystemInterface
| var |
|---|
\League\Flysystem\FilesystemInterface