Flow PHP

NativeLocalFilesystem implements Filesystem

Read onlyYes
FinalYes
Tags
type

NativeLocalConfiguration = array{protocol: string, permissions: null|PermissionsShape}

import-type

PermissionsShape from Permissions

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

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() : NativeLocalConfiguration
Return values
NativeLocalConfiguration

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