walkDirFiles

Walks through all files in a directory.

void
walkDirFiles
(
string dir
,
void delegate
(
DirEntry entry
)
visitor
,
bool recursive = true
,
int maxDepth = -1
)

Parameters

dir string

The directory to walk through.

visitor void delegate
(
DirEntry entry
)

A visitor delegate function to apply to all entries discovered.

recursive bool

Whether to recursively walk through subdirectories.

maxDepth int

How deep to search recursively. -1 indicates infinite recursion.

Meta