I am using the following code to determine if I can write to a specific directory using QFileInfo:
QFileInfo dinfo(dirname);
if (dinfo.exists())
valid = dinfo.isWritable()
Unfortunately, when I pass in the path of the current user's desktop on Vista 64:
C:\Users\USERNAME\Desktop
QFileInfo::isWritable() returns false. However, if I pass it another directory (say C:\Temp) it returns true. I requested the directory permissions from the QFileInfo object which were 5555 (not writable by anyone). This code works as expected on other platforms including Windows XP. Anybody have any ideas as to what might be going on here.
As a point of reference, if I remove the check I can actually save the file to that location without a problem.