listDirectory

Enumerates all files in the specified directory.

Note that unless an explicit mode is given, DirectoryMode.shallow is the default and only items directly contained in the specified folder will be returned.

Parameters

path NativePath

Path to the (root) folder to list

mode DirectoryListMode

Defines how files and sub directories are treated during the enumeration

del bool delegate @safe

Callback to invoke for each directory entry

directory_predicate bool function
(
ref const FileInfo
)
@safe nothrow

Optional predicate used to determine whether to descent into a sub directory (only available in the recursive DirectoryListMode modes)

Meta