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:

char[]  path
char[]  name
ulong   bytes
bool    folder

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

children
(
const(char)[] path
,
bool all = false
)

Meta