X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1af8e2dd91c86a236f30b7ba666fa57d857ab00..3cc305b2b4a0674c56c84d7088cfd70676b850f0:/docs/latex/wx/dir.tex diff --git a/docs/latex/wx/dir.tex b/docs/latex/wx/dir.tex index efc0792a5b..890afeb6e9 100644 --- a/docs/latex/wx/dir.tex +++ b/docs/latex/wx/dir.tex @@ -72,6 +72,10 @@ enum +\wxheading{Library} + +\helpref{wxBase}{librarieslist} + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxDir::wxDir}\label{wxdirwxdir} @@ -137,7 +141,7 @@ See also: \helpref{Traverse}{wxdirtraverse} \constfunc{bool}{GetFirst}{\param{wxString* }{filename}, \param{const wxString\& }{filespec = wxEmptyString}, \param{int }{flags = wxDIR\_DEFAULT}} Start enumerating all files matching {\it filespec} (or all files if it is -empty) and flags, return true on success. +empty) and {\it flags}, return \true on success. \membersection{wxDir::GetName}\label{wxdirgetname} @@ -156,6 +160,25 @@ Continue enumerating files which satisfy the criteria specified by the last call to \helpref{GetFirst}{wxdirgetfirst}. +\membersection{wxDir::GetTotalSize}\label{wxdirgettotalsize} + +\func{static wxULongLong}{GetTotalSize}{\param{const wxString\& }{dir}, \param{wxArrayString* }{filesSkipped = NULL}} + +Returns the size (in bytes) of all files recursively found in {\tt dir} or +{\tt wxInvalidSize} in case of error. + +In case it happens that while traversing folders a file's size can not be read, +that file is added to the {\tt filesSkipped} array, if not \NULL, and then +skipped. +This usually happens with some special folders which are locked by the operating system +or by another process. Remember that when {\tt filesSkipped->GetCount()} is not zero, +then the returned value is not 100\% accurate and, if the skipped files were big, it could be +far from real size of the directory. + +See also: \helpref{wxFileName::GetHumanReadableSize}{wxfilenamegethumanreadablesize}, +\helpref{wxGetDiskSpace}{wxgetdiskspace} + + \membersection{wxDir::HasFiles}\label{wxdirhasfiles} \func{bool}{HasFiles}{\param{const wxString\& }{filespec = wxEmptyString}}