Flow PHP

FileListing

Read onlyYes
FinalYes

Methods

__construct()  : mixed
list()  : Generator<string|int, FileStatus>
$filter has no default on purpose - Filesystem::list() defaults it to KeepAll while NativeLocalFilesystem::list() defaults it to OnlyFiles, so a default here would silently pick one.

Methods

list()

$filter has no default on purpose - Filesystem::list() defaults it to KeepAll while NativeLocalFilesystem::list() defaults it to OnlyFiles, so a default here would silently pick one.

public list(Path $path, Filter $filter) : Generator<string|int, FileStatus>
Parameters
$path : Path
$filter : Filter
Return values
Generator<string|int, FileStatus>
On this page

Search results