getFiles

Reads entries of the directory.

getFiles
(
string dir
,
Flag!"hidden" hidden = Yes.hidden
,
Flag!"recursively" recursively = No.recursively
,
Flag!"absPath" saveAbsolutePath = Yes.absPath
,
Flag!"enableFilter" enableFilter = No.enableFilter
,)

Parameters

dir string

Directory for listing files.

hidden Flag!"hidden"

Whether to include hidden files. Yes, by default.

recursively Flag!"recursively"

Whether to search in subdirectories. No, by default.

saveAbsolutePath Flag!"absPath"

Whether to store an absolute path or not. If Yes, a relative path of dir is converted to absolute. The parameter has no effect if dir is an absolute path. Has value Yes, by default.

enableFilter Flag!"enableFilter"

Whether to filter by type. No, by default.

includedTypes FileType[]

Types for including to final result. Used in conjunction with the previous parameter.

See Also

$(FS_REF getRegularFiles), $(FS_REF getDirectories), $(FS_REF getSymlinks).

Meta