Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.6, 5.12.0
-
-
163a0475ebf403fd39f7a7cc764119b40664da1d (qt/qtbase/5.12)
Description
The behavior of QFile::rename is inconsistent when used on a file in USB flash drive and when used on a file in local HDD.
Behavior on local hdd:
- If a file with the new name exists, returns false and nothing will be done
Behavior on usb flash drive:
- If a file with the new name exists, returns true and overwrites the existing file without a warning
Steps to reproduce:
- Run the attached project
- Select a test directory on usb flash drive
- Select a test directory on local hdd
- Click "Run test". (Creates 2 empty sample files on both target directories and attempts to overwrite one with the other using QFile::rename)