Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
4.8.5
-
None
-
Windows 7 x64, Qt build for MSVC 2008 32-bit
Description
QDir::canonicalPath() on Windows returns empty string if that directory has been just created. Attaching a testcase. I tried it also on Linux x86_64 and it worked as expected.
I consider this bug somewhat serious. There was code in my application that I acknowledge it wasn't ideal, but it relied on QDir::canonicalPath() returning actual path to the directory after successful QDir::mkpath(). I didn't test it thoroughly on Windows (only on Linux) and it caused data loss bugs for my Windows users.
Attachments
Issue Links
- relates to
-
QTBUG-25811 QFileInfo::lastModified returning wrong value for non-existing file
- Closed