add wxPosixPermissions enumeration; it provides more readable synonims for wxS_I* flags and makes it easier to document which flags can be used in wxFile functions and wxFileName::Mkdir (and in future wxFileName::Chmod)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-09-27 10:27:44 +00:00
parent 5fed01a943
commit f41d6c8cd7
10 changed files with 811 additions and 465 deletions

View File

@@ -830,7 +830,8 @@ public:
Creates a directory.
@param perm
The permissions for the newly created directory
The permissions for the newly created directory.
See wxPosixPermissions enumeration for more info.
@param flags
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
directory in the path and also don't return an error if the target
@@ -839,24 +840,25 @@ public:
@return Returns @true if the directory was successfully created, @false
otherwise.
*/
bool Mkdir(int perm = 0777, int flags = 0);
bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0);
/**
Creates a directory.
@param dir
the directory to create
The directory to create
@param parm
the permissions for the newly created directory
The permissions for the newly created directory.
See wxPosixPermissions enumeration for more info.
@param flags
if the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
If the flags contain @c wxPATH_MKDIR_FULL flag, try to create each
directory in the path and also don't return an error if the target
directory already exists.
@return Returns @true if the directory was successfully created, @false
otherwise.
*/
static bool Mkdir(const wxString& dir, int perm = 0777,
static bool Mkdir(const wxString& dir, int perm = wxS_DIR_DEFAULT,
int flags = 0);
/**