]> git.saurik.com Git - wxWidgets.git/commitdiff
Document wxRenameFile() behaviour when destination is a directory.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Nov 2010 16:28:57 +0000 (16:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Nov 2010 16:28:57 +0000 (16:28 +0000)
Document that the source file is moved to the destination if it's a directory,
apparently this is not obvious.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/filefn.h

index 6351624c4ef789a080e8cd07779eca03410fee1d..18fd7def0d7e5970bf2ae6dce6fad60bb0c37658 100644 (file)
@@ -248,9 +248,10 @@ time_t wxFileModificationTime(const wxString& filename);
 /**
     Renames @a file1 to @e file2, returning @true if successful.
 
-    If @a overwrite parameter is @true (default), the destination file is
-    overwritten if it exists, but if @a overwrite is @false, the functions
-    fails in this case.
+    If @a file2 is a directory, @a file1 is moved into it (@a overwrite is
+    ignored in this case). Otherwise, if @a file2 is an existing file, it is
+    overwritten if @a overwrite is @true (default) and the function fails if @a
+    overwrite is @false.
 
     @header{wx/filefn.h}
 */