API / Minn\Support / DirectoryListing

DirectoryListing final class

Minn\Support\DirectoryListing · public/minn/src/Minn/Support/DirectoryListing.php · 34 lines

Walks a directory the way the filesystem API lists it: named entries, dot entries skipped, hidden ones optional, recursion optional.

Public

staticread(string $path, bool $includeHidden, bool $recursive, ?string $onlyName, callable $describe): array|false#

A directory's entries described one by one, or false when unreadable.

$describecallable(string): array<string, mixed>the entry's own fields for an absolute path
@return array<string, array<string, mixed>>|false false when the path is not a readable directory