From 327ac3ec2a475305d569d3f3ba1927a5a61d8926 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Nov 2010 16:28:57 +0000 Subject: [PATCH] Document wxRenameFile() behaviour when destination is a directory. 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/wx/filefn.h b/interface/wx/filefn.h index 6351624c4e..18fd7def0d 100644 --- a/interface/wx/filefn.h +++ b/interface/wx/filefn.h @@ -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} */ -- 2.45.2