diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2021-02-25 00:16:28 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-02-26 10:47:53 +0000 |
commit | 57111a9161903b31943548052a3bf165b1384cc2 (patch) | |
tree | 203f1c005dbc80b5f482abff4bd91f1f30b76b7c /doc | |
parent | e00084410c53aeaf5e2264b3cfeccd0ef479e4f7 (diff) | |
download | qbs-57111a9161903b31943548052a3bf165b1384cc2.tar.gz |
doc: add a note about timestamps in File.copy
Task-number: QBS-1634
Change-Id: I8098253e3858e114028017e7543494f9ba519160
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/jsextensions/jsextension-file.qdoc | 3 |
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 |