Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.1, 6.9.0 Beta1
-
None
-
2
-
a01b14f1d (dev), 1ec2f5df2 (6.9), 2e98d8d1d (6.8), 776137f29 (tqtc/lts-6.5), 2e91fa640 (tqtc/lts-5.15), c22c344f2 (dev)
-
Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125, Foundation Sprint 126, Foundation Sprint 127, Foundation Sprint 128, Foundation Sprint 129, Foundation Sprint 130, Foundation Sprint 131, Foundation Sprint 132, Foundation Sprint 133, Foundation Sprint 134, Foundation Sprint 135
Description
QTemporaryFile::rename() will not overwrite the target, if it exists, making this function rather useless, seeing as it's the only public Qt API I know that guarantees an atomic rename of a file at the OS level (cf. also QTBUG-2082).
Add a renameOverwrite() function.
Attachments
Issue Links
- relates to
-
QTBUG-132590 Unclear relation between QTemporaryFile::{autoRemove,rename}()
-
- Closed
-
- resulted in
-
QTBUG-138610 QTemporaryFile::rename() overwrites existing file on Android
-
- Reported
-