NativeLocalFilesystem implements Filesystem
Read onlyYes
FinalYes
Tags
Interfaces
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() : NativeLocalConfiguration
- 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
__construct()
public
__construct([Mount $mount = new Mount('file') ][, Permissions|null $permissions = null ]) : mixed
Parameters
- $mount : Mount = new Mount('file')
- $permissions : Permissions|null = null
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
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
Return values
staticgetSystemTmpDir()
public
getSystemTmpDir() : Path
Return values
Pathlist()
public
list(Path $path[, Filter $pathFilter = new OnlyFiles() ]) : 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() : NativeLocalConfiguration
Return values
NativeLocalConfigurationreadFrom()
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
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