- This function does directory searching; returns the first file
- that matches the path @e spec, or the empty string. Use wxFindNextFile to
- get the next matching file. Neither will report the current directory "." or the
- parent directory "..".
+ This function does directory searching; returns the first file that matches
+ the path @a spec, or the empty string. Use wxFindNextFile() to get the next
+ matching file. Neither will report the current directory "." or the parent
+ directory "..".
+
+ @warning As of 2.5.2, these functions are not thread-safe! (they use static
+ variables). You probably want to use wxDir::GetFirst() or
+ wxDirTraverser instead.
+
+ @a spec may contain wildcards.
+
+ @a flags may be wxDIR for restricting the query to directories, wxFILE for
+ files or zero for either.
+
+ For example:
+
+ @code
+ wxString f = wxFindFirstFile("/home/project/*.*");
+ while ( !f.empty() )
+ {
+ ...
+ f = wxFindNextFile();
+ }
+ @endcode
+
+ @header{wx/filefn.h}