Properties

Methods

write()

write(string  $path, string  $contents, \League\Flysystem\Config  $config) : array|false

Write a new file.

Parameters

string $path
string $contents
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

writeStream()

writeStream(string  $path, resource  $resource, \League\Flysystem\Config  $config) : array|false

Write a new file using a stream.

Parameters

string $path
resource $resource
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

update()

update(string  $path, string  $contents, \League\Flysystem\Config  $config) : array|false

Update a file.

Parameters

string $path
string $contents
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

updateStream()

updateStream(string  $path, resource  $resource, \League\Flysystem\Config  $config) : array|false

Update a file using a stream.

Parameters

string $path
resource $resource
\League\Flysystem\Config $config

Config object

Returns

array|false —

false on failure file meta data on success

rename()

rename(string  $path,   $newPath) : boolean

Rename a file.

Parameters

string $path
$newPath

Returns

boolean

copy()

copy(string  $path, string  $newpath) : boolean

Copy a file.

Parameters

string $path
string $newpath

Returns

boolean

delete()

delete(string  $path) : boolean

Delete a file.

Parameters

string $path

Returns

boolean

deleteDir()

deleteDir(string  $dirname) : boolean

Delete a directory.

Parameters

string $dirname

Returns

boolean

createDir()

createDir(string  $dirname, \League\Flysystem\Config  $config) : array|false

Create a directory.

Parameters

string $dirname

directory name

\League\Flysystem\Config $config

Returns

array|false

setVisibility()

setVisibility(string  $path, string  $visibility) : array|false

Set the visibility for a file.

Parameters

string $path
string $visibility

Returns

array|false —

file meta data

has()

has(  $path) 

{@inheritdoc}

Parameters

$path

read()

read(  $path) 

{@inheritdoc}

Parameters

$path

readStream()

readStream(  $path) 

{@inheritdoc}

Parameters

$path

listContents()

listContents(  $directory = '',   $recursive = false) 

{@inheritdoc}

Parameters

$directory
$recursive

getMetadata()

getMetadata(  $path) 

{@inheritdoc}

Parameters

$path

getSize()

getSize(  $path) 

{@inheritdoc}

Parameters

$path

getMimetype()

getMimetype(  $path) 

{@inheritdoc}

Parameters

$path

getTimestamp()

getTimestamp(  $path) 

{@inheritdoc}

Parameters

$path

getVisibility()

getVisibility(  $path) 

{@inheritdoc}

Parameters

$path

callWithFallback()

callWithFallback(string  $property, string  $path, string  $method) : mixed

Call a method and cache the response.

Parameters

string $property
string $path
string $method

Returns

mixed