X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/852febd80ec724502cf2c6bea5ad898eb78c4dda..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/src/common/dircmn.cpp?ds=inline diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 79ce97e0a3..f5b0c9fe8a 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -6,7 +6,7 @@ // Created: 19.05.01 // RCS-ID: $Id$ // Copyright: (c) 2001 Vadim Zeitlin -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -357,3 +357,26 @@ wxULongLong wxDir::GetTotalSize(const wxString &dirname, wxArrayString *filesSki } #endif // wxUSE_LONGLONG + +// ---------------------------------------------------------------------------- +// wxDir helpers +// ---------------------------------------------------------------------------- + +/* static */ +bool wxDir::Exists(const wxString& dir) +{ + return wxFileName::DirExists(dir); +} + +/* static */ +bool wxDir::Make(const wxString &dir, int perm, int flags) +{ + return wxFileName::Mkdir(dir, perm, flags); +} + +/* static */ +bool wxDir::Remove(const wxString &dir, int flags) +{ + return wxFileName::Rmdir(dir, flags); +} +