summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfile.cpp
diff options
context:
space:
mode:
authorVincent A <vincent@ftopia.com>2012-03-27 23:02:22 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-03 03:40:39 +0200
commit2e7b4bf6739b8b9d803bfb3e96c6d0b4ec26077a (patch)
tree047f80c0c1eac8a74d029aaed865338f11b8f9f4 /src/corelib/io/qfile.cpp
parent314b20e813f7bde7cabce60ed3a0179f5ddfd330 (diff)
Document QFile::rename and QDir::rename's copy operation
Change-Id: Ie81804f77510cfb73917332c8faaf921525fc26e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r--src/corelib/io/qfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp
index 6640dca70b..6e7b39fcf4 100644
--- a/src/corelib/io/qfile.cpp
+++ b/src/corelib/io/qfile.cpp
@@ -698,6 +698,11 @@ QFile::remove(const QString &fileName)
The file is closed before it is renamed.
+ If the rename operation fails, Qt will attempt to copy this file's
+ contents to \a newName, and then remove this file, keeping only
+ \a newName. If that copy operation fails or this file can't be removed,
+ the destination file \a newName is removed to restore the old state.
+
\sa setFileName()
*/