fixed several bugs in Mkdir() and also modified its API to be more user friendly (based on the patch 541033 from Chris Elliott)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,6 +80,12 @@ enum
|
||||
wxPATH_GET_SEPARATOR = 0x0002 // terminate the path with the separator
|
||||
};
|
||||
|
||||
// MkDir flags
|
||||
enum
|
||||
{
|
||||
wxPATH_MKDIR_FULL = 0x0001 // create directories recursively
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxFileName: encapsulates a file path
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -236,8 +242,8 @@ public:
|
||||
|
||||
// directory creation and removal.
|
||||
// if full is TRUE, will try to make each directory in the path.
|
||||
bool Mkdir( int perm = 0777, bool full = FALSE);
|
||||
static bool Mkdir( const wxString &dir, int perm = 0777, bool full = FALSE );
|
||||
bool Mkdir( int perm = 0777, int flags = 0);
|
||||
static bool Mkdir( const wxString &dir, int perm = 0777, int flags = 0 );
|
||||
|
||||
bool Rmdir();
|
||||
static bool Rmdir( const wxString &dir );
|
||||
|
Reference in New Issue
Block a user