aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-02-25 00:16:28 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2021-02-26 10:47:53 +0000
commit57111a9161903b31943548052a3bf165b1384cc2 (patch)
tree203f1c005dbc80b5f482abff4bd91f1f30b76b7c
parente00084410c53aeaf5e2264b3cfeccd0ef479e4f7 (diff)
doc: add a note about timestamps in File.copy
Task-number: QBS-1634 Change-Id: I8098253e3858e114028017e7543494f9ba519160 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--doc/reference/jsextensions/jsextension-file.qdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/reference/jsextensions/jsextension-file.qdoc b/doc/reference/jsextensions/jsextension-file.qdoc
index 614cc2976..f04055593 100644
--- a/doc/reference/jsextensions/jsextension-file.qdoc
+++ b/doc/reference/jsextensions/jsextension-file.qdoc
@@ -47,6 +47,9 @@
\note \c targetFilePath must be the counterpart of \c sourceFilePath at the new location,
\b{not} the new parent directory. This allows the copy to have a different name and is true
even if \c sourceFilePath is a directory.
+ \note The file is not copied if the source file timestamp is older than the destination file
+ timestamp. If you want to replace the newer file, you need to remove it first via
+ File.remove().
\section2 exists
\code