Flow PHP

TraceableFilesystem implements Filesystem

Read onlyYes
FinalYes

Rebuilt as its inner filesystem: the configuration is the inner's, whatever its shape.

Interfaces

Filesystem

Methods

__construct()  : mixed
appendTo()  : DestinationStream
create()  : DestinationStream
Bytes become visible whole at close().
fromArray()  : static
getSystemTmpDir()  : Path
list()  : Generator<string|int, FileStatus>
mount()  : Mount
mv()  : bool
normalize()  : null|array<string, mixed>
readFrom()  : SourceStream
rm()  : bool
status()  : FileStatus|null
supports()  : bool
True when this filesystem serves the given path's protocol.
writeTo()  : DestinationStream
Open destination stream for writing, if file already exists it will be overwritten.

Methods

fromArray()

public static fromArray(array<string|int, mixed> $configuration) : static
Parameters
$configuration : array<string|int, mixed>

untrusted: decoded from another process, validated here

Return values
static

normalize()

public normalize() : null|array<string, mixed>
Return values
null|array<string, mixed> —

null when this instance holds live state (a client, memory) and cannot be rebuilt

rm()

public rm(Path $path[, bool $recursive = true ]) : bool
Parameters
$path : Path
$recursive : bool = true
Return values
bool

supports()

True when this filesystem serves the given path's protocol.

public supports(Path $path) : bool
Parameters
$path : Path
Return values
bool
On this page

Search results