Properties

$pathPrefix

$pathPrefix : string|null

Type

string|null — path prefix

$pathSeparator

$pathSeparator : string

Type

string

Methods

copy()

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

Copy a file.

Parameters

string $path
string $newpath

Returns

bool —

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) : bool

Check whether a file is present.

Parameters

string $path

Returns

bool —

write()

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

Parameters

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

Returns

mixed —

update()

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

Parameters

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

Returns

mixed —

read()

read(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

rename()

rename(mixed  $path, mixed  $newpath) : mixed

Parameters

mixed $path
mixed $newpath

Returns

mixed —

delete()

delete(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

listContents()

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

Parameters

mixed $directory
mixed $recursive

Returns

mixed —

getMetadata()

getMetadata(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

getSize()

getSize(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

getMimetype()

getMimetype(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

getTimestamp()

getTimestamp(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

getVisibility()

getVisibility(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

setVisibility()

setVisibility(mixed  $path, mixed  $visibility) : mixed

Parameters

mixed $path
mixed $visibility

Returns

mixed —

createDir()

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

Parameters

mixed $dirname
\League\Flysystem\Config $config

Returns

mixed —

deleteDir()

deleteDir(mixed  $dirname) : mixed

Parameters

mixed $dirname

Returns

mixed —