X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f01b1fe21b10e59f19a25ccf8797696a865d017..b72ed64277a2b16c6c8681995e5f3f304a8fe38d:/interface/wx/dir.h diff --git a/interface/wx/dir.h b/interface/wx/dir.h index 1b9ba58313..ecf8ffb724 100644 --- a/interface/wx/dir.h +++ b/interface/wx/dir.h @@ -3,7 +3,7 @@ // Purpose: interface of wxDir and wxDirTraverser // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -233,7 +233,7 @@ public: Returns the size (in bytes) of all files recursively found in @c dir or @c wxInvalidSize in case of error. - In case it happens that while traversing folders a file's size can not + In case it happens that while traversing folders a file's size cannot be read, that file is added to the @a 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 @@ -266,12 +266,29 @@ public: */ bool IsOpened() const; + /** + Creates a directory. + + This is just an alias for wxFileName::Mkdir(); refer to that function + for more info. + */ + static bool Make(const wxString &dir, int perm = wxS_DIR_DEFAULT, + int flags = 0); + /** Open the directory for enumerating, returns @true on success or @false if an error occurred. */ bool Open(const wxString& dir); + /** + Removes a directory. + + This is just an alias for wxFileName::Rmdir(); refer to that function + for more info. + */ + static bool Remove(const wxString &dir, int flags = 0); + /** Enumerate all files and directories under the given directory recursively calling the element of the provided wxDirTraverser object