qt6-bb10/src/corelib/io
Thiago Macieira d3b6ef6ccf QFile::rename: fix the error message if renaming a file by copy fails
The QFile out variable cannot be open because if out.open() succeeded,
we could never reach this line. Instead, we want to capture *why* either
the source or the destination failed to open.

Task-number: QTBUG-66445
Change-Id: I940917d6763842499b18fffd15142f231bf34a47
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
2018-03-21 14:23:53 +00:00
..
PSL-LICENSE.txt Document The Public Suffix List 2016-11-23 09:35:35 +00:00
forkfd_qt.cpp Properly use the "process" feature 2017-02-27 15:44:46 +00:00
io.pri Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qabstractfileengine.cpp Fix QAbstractFileEngine::clone misuse 2017-08-09 05:19:23 +00:00
qabstractfileengine_p.h Fix QAbstractFileEngine::clone misuse 2017-08-09 05:19:23 +00:00
qbuffer.cpp Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qbuffer.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qdataurl.cpp
qdataurl_p.h
qdebug.cpp doc: Correct all remaining clangqdoc warnings in qdebug.cpp 2017-12-02 09:38:36 +00:00
qdebug.h Merge remote-tracking branch 'origin/5.9' into dev 2017-04-20 12:31:27 +02:00
qdebug_p.h
qdir.cpp Make sure QDir::absoluteFilePath("/dir") includes a drive on MS 2018-03-12 18:11:33 +00:00
qdir.h Introduce QDir::isEmpty() 2017-01-08 16:11:34 +00:00
qdir_p.h
qdiriterator.cpp QDirIterator docs: add a cool recursive file-finding snippet 2017-05-16 06:00:47 +00:00
qdiriterator.h
qfile.cpp QFile::rename: fix the error message if renaming a file by copy fails 2018-03-21 14:23:53 +00:00
qfile.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qfile_p.h QtCore: Add missing override 2016-11-16 22:57:22 +00:00
qfiledevice.cpp Merge remote-tracking branch 'origin/5.9' into dev 2017-08-08 11:48:10 +02:00
qfiledevice.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qfiledevice_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qfileinfo.cpp Merge remote-tracking branch 'origin/5.9' into dev 2017-08-31 14:31:31 +02:00
qfileinfo.h Introduce QFileInfo::birthTime and metadataChangeTime 2017-08-05 16:41:32 +00:00
qfileinfo_p.h QFileInfo: harmonize QFileInfo() and QFileInfo("") 2017-08-08 21:48:23 +00:00
qfileselector.cpp Remove duplicate qnx from the platform file selector names 2017-10-24 16:43:39 +00:00
qfileselector.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qfileselector_p.h
qfilesystemengine.cpp QFileSystemEngine: Remove unneeded test for relative symlink 2017-09-28 12:42:07 +00:00
qfilesystemengine_p.h Move the file-cloning code from QFSFileEngine to QFileSystemEngine 2017-08-22 06:56:08 +00:00
qfilesystemengine_unix.cpp Disable statx(2) and renameat2(2) system calls on Android 2018-03-14 19:26:02 +00:00
qfilesystemengine_win.cpp Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-04 17:24:18 +01:00
qfilesystementry.cpp QFileSystemEngine: verify that the file name isn't empty 2017-08-17 04:45:29 +00:00
qfilesystementry_p.h QFileSystemEngine: verify that the file name isn't empty 2017-08-17 04:45:29 +00:00
qfilesystemiterator_p.h Merge remote-tracking branch 'origin/5.6' into 5.7 2016-11-04 11:39:15 +01:00
qfilesystemiterator_unix.cpp QDirIterator: Skip inconvertible file names on Unix 2017-11-14 15:55:06 +00:00
qfilesystemiterator_win.cpp Remove support for WinRT 8.1 and Windows Phone 8.1 2017-01-18 12:38:56 +00:00
qfilesystemmetadata_p.h Fix namespaced linux builds 2017-11-28 18:41:28 +00:00
qfilesystemwatcher.cpp QtCore: include mocs 2017-05-05 03:03:30 +00:00
qfilesystemwatcher.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qfilesystemwatcher_fsevents.mm Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qfilesystemwatcher_fsevents_p.h Merge remote-tracking branch 'origin/5.7' into 5.8 2016-10-11 07:40:32 +02:00
qfilesystemwatcher_inotify.cpp Android: Fix compile with unified headers 2017-08-17 17:21:35 +00:00
qfilesystemwatcher_inotify_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qfilesystemwatcher_kqueue.cpp QFileSystemWatcher/kqueue: make the fd duplication + FD_CLOEXEC atomic 2017-07-21 15:52:42 +00:00
qfilesystemwatcher_kqueue_p.h
qfilesystemwatcher_p.h QFileSystemWatcher/Win32: Listen for WM_DEVICECHANGE 2016-10-18 07:52:22 +00:00
qfilesystemwatcher_polling.cpp QtCore: include mocs 2017-05-05 03:03:30 +00:00
qfilesystemwatcher_polling_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qfilesystemwatcher_win.cpp QFilesystemWatcher/Windows: Use event dispatcher of thread 2017-11-04 19:01:03 +00:00
qfilesystemwatcher_win_p.h QFileSystemWatcher/Windows: Fix crash when no QCoreApplication is present 2017-08-02 20:26:13 +00:00
qfsfileengine.cpp Add QIODevice::NewOnly and QIODevice::ExistingOnly OpenMode flags 2018-01-17 04:32:47 +00:00
qfsfileengine_iterator.cpp
qfsfileengine_iterator_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qfsfileengine_p.h Add QIODevice::NewOnly and QIODevice::ExistingOnly OpenMode flags 2018-01-17 04:32:47 +00:00
qfsfileengine_unix.cpp Merge remote-tracking branch 'origin/5.10' into 5.11 2018-02-15 10:14:11 +01:00
qfsfileengine_win.cpp Add QIODevice::NewOnly and QIODevice::ExistingOnly OpenMode flags 2018-01-17 04:32:47 +00:00
qiodevice.cpp Add QIODevice::NewOnly and QIODevice::ExistingOnly OpenMode flags 2018-01-17 04:32:47 +00:00
qiodevice.h Add QIODevice::NewOnly and QIODevice::ExistingOnly OpenMode flags 2018-01-17 04:32:47 +00:00
qiodevice_p.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qipaddress.cpp QIpAddress: reject IPv6 addresses with more than 4 hex digits 2018-03-16 00:01:53 +00:00
qipaddress_p.h
qlockfile.cpp QLockFile/Unix: save the boot and machine IDs in the lock file too 2017-11-14 15:54:56 +00:00
qlockfile.h
qlockfile_p.h QLockFile/Unix: save the boot and machine IDs in the lock file too 2017-11-14 15:54:56 +00:00
qlockfile_unix.cpp QLockFile/Unix: save the boot and machine IDs in the lock file too 2017-11-14 15:54:56 +00:00
qlockfile_win.cpp QLockFile/Unix: save the boot and machine IDs in the lock file too 2017-11-14 15:54:56 +00:00
qloggingcategory.cpp Doc: State that qDebug and friends are thread-safe 2017-10-17 13:57:45 +00:00
qloggingcategory.h
qloggingregistry.cpp Android: Defer initialization of logging rules until qApp construction 2018-02-07 11:19:44 +00:00
qloggingregistry_p.h Fix typo 2017-12-13 13:07:48 +00:00
qnoncontiguousbytedevice.cpp QtCore: include mocs 2017-05-05 03:03:30 +00:00
qnoncontiguousbytedevice_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qprocess.cpp Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
qprocess.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qprocess_darwin.mm Rename QProcessEnvironmentPrivate::hash to vars 2017-06-13 06:09:36 +00:00
qprocess_p.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qprocess_unix.cpp Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qprocess_win.cpp Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qresource.cpp Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
qresource.h Fix missing last modification time stamp in qrc content 2016-11-22 04:57:02 +00:00
qresource_iterator.cpp
qresource_iterator_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qresource_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qsavefile.cpp Windows/QSaveFile: Fix locking issues on Dropbox drives 2018-02-14 11:48:03 +00:00
qsavefile.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qsavefile_p.h
qsettings.cpp Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qsettings.h doc: Fix several minor qdoc warnings 2018-01-20 13:54:37 +00:00
qsettings_mac.cpp Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qsettings_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qsettings_win.cpp qsettings_win.cpp: Use qt_error_string() 2016-10-24 16:26:55 +00:00
qsettings_winrt.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-22 21:19:57 +02:00
qstandardpaths.cpp QStandardPaths: fall back to a default if PATH isn't set 2017-12-12 19:06:57 +00:00
qstandardpaths.h
qstandardpaths_android.cpp Android: Don't rely on QDir::homePath() to get the application directory 2018-02-12 00:16:17 +00:00
qstandardpaths_haiku.cpp
qstandardpaths_mac.mm Merge remote-tracking branch 'origin/5.10' into dev 2018-01-20 22:36:19 +01:00
qstandardpaths_unix.cpp Modernize the "regularexpression" feature 2018-03-20 08:19:25 +00:00
qstandardpaths_win.cpp Merge remote-tracking branch 'origin/5.9' into 5.10 2017-11-23 12:52:18 +01:00
qstandardpaths_winrt.cpp
qstorageinfo.cpp Add debug operator for QStorageInfo 2017-06-26 08:00:39 +00:00
qstorageinfo.h Add debug operator for QStorageInfo 2017-06-26 08:00:39 +00:00
qstorageinfo_mac.cpp Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qstorageinfo_p.h
qstorageinfo_stub.cpp
qstorageinfo_unix.cpp Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
qstorageinfo_win.cpp Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qt_attribution.json Remove third-party attribution for qtemporaryfile 2018-02-14 07:36:06 +00:00
qtemporarydir.cpp Add QTemporaryDir to the bootstrap library 2017-09-12 09:38:00 +00:00
qtemporarydir.h Add QTemporaryDir to the bootstrap library 2017-09-12 09:38:00 +00:00
qtemporaryfile.cpp Windows/QSaveFile: Fix locking issues on Dropbox drives 2018-02-14 11:48:03 +00:00
qtemporaryfile.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qtemporaryfile_p.h Windows/QSaveFile: Fix locking issues on Dropbox drives 2018-02-14 11:48:03 +00:00
qtldurl.cpp Optimize qIsEffectiveTLD() 2017-03-30 13:28:53 +00:00
qtldurl_p.h Add configure feature for QUrl::topLevelDomain 2016-10-11 14:20:27 +00:00
qurl.cpp Add more code examples to QUrl documentation 2017-12-21 12:54:40 +00:00
qurl.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qurl_p.h
qurlidna.cpp QtCore: Raise minimum supported MSVC version to 2015 2018-01-08 04:52:43 +00:00
qurlquery.cpp
qurlquery.h
qurlrecode.cpp Fix GCC 8 warning in qurlrecode 2018-02-14 05:43:46 +00:00
qurltlds_p.h Update qurltlds_p.h 2018-01-05 08:22:23 +00:00
qurltlds_p.h.INFO Document The Public Suffix List 2016-11-23 09:35:35 +00:00
qwindowspipereader.cpp Add more Q_FALLTHROUGH() 2018-01-12 07:10:25 +00:00
qwindowspipereader_p.h Do not wait in QWindowsPipe{Reader|Writer}::stop() 2017-07-17 11:20:47 +00:00
qwindowspipewriter.cpp Add more Q_FALLTHROUGH() 2018-01-12 07:10:25 +00:00
qwindowspipewriter_p.h Merge remote-tracking branch 'origin/5.9' into dev 2017-07-19 09:47:29 +02:00