children

Provides foreach support via a fruct, as in

foreach (info; children("myfolder"))
    ...

Each path and filename is passed to the foreach delegate, along with the path prefix and whether the entry is a folder or not. The info construct exposes the following attributes:

mstring  path
mstring  name
ulong   bytes
bool    folder

Argument 'all' controls whether hidden and system files are included - these are ignored by default.

children
(
cstring path
,
bool all = false
)

Meta