Properties

$pathPrefix

$pathPrefix : string|null

Type

string|null — path prefix

$pathSeparator

$pathSeparator : string

Type

string

Methods

copy()

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

Copy a file.

Parameters

string $path
string $newpath

Returns

boolean

readStream()

readStream(string  $path) : resource

Parameters

string $path

Returns

resource

writeStream()

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

Parameters

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

Returns

resource

setPathPrefix()

setPathPrefix(string  $prefix) : void

Set the path prefix.

Parameters

string $prefix

getPathPrefix()

getPathPrefix() : string|null

Get the path prefix.

Returns

string|null —

path prefix or null if pathPrefix is empty

applyPathPrefix()

applyPathPrefix(string  $path) : string

Prefix a path.

Parameters

string $path

Returns

string —

prefixed path

removePathPrefix()

removePathPrefix(string  $path) : string

Remove a path prefix.

Parameters

string $path

Returns

string —

path without the prefix

has()

has(string  $path) : boolean

Check whether a file is present.

Parameters

string $path

Returns

boolean

write()

write(  $path,   $contents, \League\Flysystem\Config  $config) 

Parameters

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

update()

update(  $path,   $contents, \League\Flysystem\Config  $config) 

Parameters

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

read()

read(  $path) 

Parameters

$path

rename()

rename(  $path,   $newpath) 

Parameters

$path
$newpath

delete()

delete(  $path) 

Parameters

$path

listContents()

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

Parameters

$directory
$recursive

getMetadata()

getMetadata(  $path) 

Parameters

$path

getSize()

getSize(  $path) 

Parameters

$path

getMimetype()

getMimetype(  $path) 

Parameters

$path

getTimestamp()

getTimestamp(  $path) 

Parameters

$path

getVisibility()

getVisibility(  $path) 

Parameters

$path

setVisibility()

setVisibility(  $path,   $visibility) 

Parameters

$path
$visibility

createDir()

createDir(  $dirname, \League\Flysystem\Config  $config) 

Parameters

$dirname
\League\Flysystem\Config $config

deleteDir()

deleteDir(  $dirname) 

Parameters

$dirname