GetFileSystemEntries()

Directory::GetFileSystemEntries(const String&, const String&, SearchOption) method

Searches for the files and directories that satisfy the specified search criteria either in the specified directory or in the whole directory tree rooted in the specified directory.

static ArrayPtr<String> System::IO::Directory::GetFileSystemEntries(const String &path, const String &searchPattern=u"*", SearchOption searchOption=SearchOption::TopDirectoryOnly)

Arguments

ParameterTypeDescription
pathconst String&Full or relative path to the directory to search in
searchPatternconst String&The name pattern of the files and directories to search for
searchOptionSearchOptionSpecifies whether the search has to be performed in the specified directory only or in the whole directory tree rooted in the specified directory

Return Value

An array of full paths of the found files and directories whose names match searchPattern

See Also