X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94f562a27908672661ad7720507bba0753ca3ac6..fd495ab3ea1282ddb8bb0cd0fb79fc758ae5fcee:/docs/latex/wx/dir.tex?ds=inline diff --git a/docs/latex/wx/dir.tex b/docs/latex/wx/dir.tex index cb9dca65d9..6a3dbe6a83 100644 --- a/docs/latex/wx/dir.tex +++ b/docs/latex/wx/dir.tex @@ -126,6 +126,22 @@ empty) and flags, return TRUE on success. Continue enumerating files satisfying the criteria specified by the last call to \helpref{GetFirst}{wxdirgetfirst}. +\membersection{wxDir::HasFiles}\label{wxdirhasfiles} + +\func{bool}{HasFiles}{\param{const wxString& }{filespec = wxEmptyString}} + +Returns {\tt TRUE} if the directory contains any files matching the given +{\it filespec}. If {\it filespec} is empty, look for any files at all. In any +case, even hidden files are taken into account. + +\membersection{wxDir::HasSubDirs}\label{wxdirhassubdirs} + +\func{bool}{HasSubDirs}{\param{const wxString& }{dirspec = wxEmptyString}} + +Returns {\tt TRUE} if the directory contains any subdirectories (if a non +empty {\it filespec} is given, only check for directories matching it). +The hidden subdirectories are taken into account as well. + \membersection{wxDir::Traverse}\label{wxdirtraverse} \func{size\_t}{Traverse}{\param{wxDirTraverser& }{sink}, \param{const wxString& }{filespec = wxEmptyString}, \param{int }{flags = wxDIR\_DEFAULT}} @@ -146,9 +162,9 @@ Depending on the return value, the enumeration may continue or stop. The function returns the total number of files found or {\tt (size\_t)-1} on error. -See also: \helpref{GetAllFiles}\label{wxdirgetallfiles} +See also: \helpref{GetAllFiles}{wxdirgetallfiles} -\membersection{wxDir::GetAllFiles}{wxdirgetallfiles} +\membersection{wxDir::GetAllFiles}\label{wxdirgetallfiles} \func{static size\_t}{GetAllFiles}{\param{const wxString& }{dirname}, \param{wxArrayString *}{files}, \param{const wxString& }{filespec = wxEmptyString}, \param{int }{flags = wxDIR\_DEFAULT}}