Flow PHP

Filesystem

Methods

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

Tags
throws
InvalidArgumentException

on a configuration this class cannot rebuild from

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
Tags
throws
RuntimeException

when $recursive is false and a matched directory is not empty

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