Details
-
Type:
Bug
-
Status: Open
-
Priority:
Not Evaluated
-
Resolution: Unresolved
-
Affects Version/s: 4.8.5
-
Fix Version/s: None
-
Component/s: Core: I/O
-
Labels:None
-
Environment: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
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-27092 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97736,2 | Windows: No longer use cached Exists-attribute in QFileSystemEngine::canonicalName(). | 5.4 | qt/qtbase | Status: DEFERRED | 0 | 0 |