added overwrite parameter to wxRenameFile (patch 1467041)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-16 21:14:00 +00:00
parent e3950b1852
commit 57e988b8ef
3 changed files with 19 additions and 4 deletions

View File

@@ -1215,10 +1215,14 @@ Removes \arg{file}, returning true if successful.
\membersection{::wxRenameFile}\label{wxrenamefile}
\func{bool}{wxRenameFile}{\param{const wxString\& }{file1}, \param{const wxString\& }{file2}}
\func{bool}{wxRenameFile}{\param{const wxString\& }{file1}, \param{const wxString\& }{file2}, \param{bool overwrite = true}}
Renames \arg{file1} to \arg{file2}, returning true if successful.
If \arg{overwrite} parameter is true (default), the destination file is
overwritten if it exists, but if \arg{overwrite} is false, the functions fails
in this case.
\membersection{::wxRmdir}\label{wxrmdir}