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
appendTo()
public
appendTo(Path $path) : DestinationStream
Parameters
- $path : Path
Return values
DestinationStreamcreate()
Bytes become visible whole at close().
public
create(Path $path) : DestinationStream
Parameters
- $path : Path
Tags
Return values
DestinationStreamfromArray()
public
static fromArray(array<string|int, mixed> $configuration) : static
Parameters
- $configuration : array<string|int, mixed>
-
untrusted: decoded from another process, validated here
Tags
Return values
staticgetSystemTmpDir()
public
getSystemTmpDir() : Path
Return values
Pathlist()
public
list(Path $path[, Filter $pathFilter = new KeepAll() ]) : Generator<string|int, FileStatus>
Parameters
Return values
Generator<string|int, FileStatus>mount()
public
mount() : Mount
Return values
Mountmv()
public
mv(Path $from, Path $to) : bool
Parameters
Return values
boolnormalize()
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
readFrom()
public
readFrom(Path $path) : SourceStream
Parameters
- $path : Path
Return values
SourceStreamrm()
public
rm(Path $path[, bool $recursive = true ]) : bool
Parameters
- $path : Path
- $recursive : bool = true
Tags
Return values
boolstatus()
public
status(Path $path) : FileStatus|null
Parameters
- $path : Path
Return values
FileStatus|nullsupports()
True when this filesystem serves the given path's protocol.
public
supports(Path $path) : bool
Parameters
- $path : Path
Return values
boolwriteTo()
Open destination stream for writing, if file already exists it will be overwritten.
public
writeTo(Path $path) : DestinationStream
Parameters
- $path : Path