make wxFileName::{Mk,Rm}dir() const (closes #10868)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -316,11 +316,11 @@ public:
|
|||||||
#endif // wxUSE_FFILE
|
#endif // wxUSE_FFILE
|
||||||
|
|
||||||
// directory creation and removal.
|
// directory creation and removal.
|
||||||
bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0);
|
bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0) const;
|
||||||
static bool Mkdir(const wxString &dir, int perm = wxS_DIR_DEFAULT,
|
static bool Mkdir(const wxString &dir, int perm = wxS_DIR_DEFAULT,
|
||||||
int flags = 0);
|
int flags = 0);
|
||||||
|
|
||||||
bool Rmdir(int flags = 0);
|
bool Rmdir(int flags = 0) const;
|
||||||
static bool Rmdir(const wxString &dir, int flags = 0);
|
static bool Rmdir(const wxString &dir, int flags = 0);
|
||||||
|
|
||||||
// operations on the path
|
// operations on the path
|
||||||
|
@@ -892,7 +892,7 @@ public:
|
|||||||
@return Returns @true if the directory was successfully created, @false
|
@return Returns @true if the directory was successfully created, @false
|
||||||
otherwise.
|
otherwise.
|
||||||
*/
|
*/
|
||||||
bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0);
|
bool Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a directory.
|
Creates a directory.
|
||||||
@@ -1009,7 +1009,7 @@ public:
|
|||||||
@return Returns @true if the directory was successfully deleted, @false
|
@return Returns @true if the directory was successfully deleted, @false
|
||||||
otherwise.
|
otherwise.
|
||||||
*/
|
*/
|
||||||
bool Rmdir(int flags = 0);
|
bool Rmdir(int flags = 0) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Deletes the specified directory from the file system.
|
Deletes the specified directory from the file system.
|
||||||
|
@@ -1073,7 +1073,7 @@ wxString wxFileName::GetTempDir()
|
|||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileName::Mkdir( int perm, int flags )
|
bool wxFileName::Mkdir( int perm, int flags ) const
|
||||||
{
|
{
|
||||||
return wxFileName::Mkdir(GetPath(), perm, flags);
|
return wxFileName::Mkdir(GetPath(), perm, flags);
|
||||||
}
|
}
|
||||||
@@ -1117,7 +1117,7 @@ bool wxFileName::Mkdir( const wxString& dir, int perm, int flags )
|
|||||||
return ::wxMkdir( dir, perm );
|
return ::wxMkdir( dir, perm );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFileName::Rmdir(int flags)
|
bool wxFileName::Rmdir(int flags) const
|
||||||
{
|
{
|
||||||
return wxFileName::Rmdir( GetPath(), flags );
|
return wxFileName::Rmdir( GetPath(), flags );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user