-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
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.
- resulted in
-
QTBUG-2086 QDir::rename() does not change folder names to uppercase
-
- Closed
-
| 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: ABANDONED | -1 | 0 |
| 615630,11 | QTemporaryFile: add renameOverwrite() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 616260,3 | QSaveFile: add (public) API to disable following symlinks | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |