summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-01-19 11:32:01 -0800
committerThiago Macieira <thiago.macieira@intel.com>2024-01-25 09:37:48 -0800
commit6d1b4d574021bc2d036e61526b01a2dea5876b5b (patch)
tree2d0821f87c4c05abb18c1c58a62dd837f87264af /doc
parentfcaf9a476f91dd95252dedd2422091420713a24a (diff)
QFile::moveToTrash: add documentation about run time and fail conditions
All of the implementations will attempt to perform a filesystem rename, so the runtime is constant for a single file and possibly for a directory full of files too. The macOS and Windows implementations use the OS API so they run with slightly elevated privileges. That means they don't fail under normal conditions. The XDG implementation will fail if the file or dir being trashed resides on a volume which doesn't have an existing trash location for the current user and one such cannot be created either, or if the hardlinking/renaming fails (usually with EXDEV). Pick-to: 6.6 6.7 Change-Id: I76ffba14ece04f24b43efffd17abd67e20196f2b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/global/externalsites/external-resources.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/global/externalsites/external-resources.qdoc b/doc/global/externalsites/external-resources.qdoc
index 3bf48bfd3b..bd1292f4c8 100644
--- a/doc/global/externalsites/external-resources.qdoc
+++ b/doc/global/externalsites/external-resources.qdoc
@@ -566,3 +566,8 @@
\externalpage https://www.qt.io/product/quality-assurance/test-center
\title Test Center
*/
+
+/*!
+ \externalpage https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
+ \title FreeDesktop.org Trash specification version 1.0
+*/