Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.4.0, 6.9.0 Beta1
-
None
Description
Add an atomic rename() function, so that existing files can be replaced with new ones. The Unix way is:
::rename(old, new); // "new" is an existing file
or:
::link(old, new);
::remove(old);
on Windows, it requires using MoveFileEx with MOVEFILE_REPLACE_EXISTING. (We're currently using MoveFile)
See http://msdn.microsoft.com/en-us/library/aa363875(VS.85).aspx for the example that ideally is possible for Qt to support.
Attachments
Issue Links
- resulted in
-
QTBUG-2086 QDir::rename() does not change folder names to uppercase
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-2082 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
615500,9 | QSaveFile: add private API to disable symlink following | dev | qt/qtbase | Status: NEW | -1 | 0 |
615630,2 | QTemporaryFile: add renameOverwrite() | dev | qt/qtbase | Status: NEW | -1 | 0 |
616260,3 | QSaveFile: add (public) API to disable following symlinks | dev | qt/qtbase | Status: NEW | -1 | 0 |