[Qt-interest] Invalid permissions for folder!
Iurii Gordiienko
hordi at ukr.net
Thu Aug 27 12:02:45 CEST 2009
Hi
I have a folder without "Read & Execute" permissions for me on WindowsXP. For checking that I use code similar this, but it does not work (b always is TRUE)... What's wrong? QFile::Permissions perm = QFileInfo( "c:/ACCESS_DENIED/" ).permissions();
bool
b = perm & QFile::ReadOwner;
b = perm & QFile::WriteOwner;
b = perm & QFile::ExeOwner;
b = perm & QFile::ReadUser;
b = perm & QFile::WriteUser;
b = perm & QFile::ExeUser;
b = perm & QFile::ReadGroup;
b = perm & QFile::WriteGroup;
b = perm & QFile::ExeGroup;
b = perm & QFile::ReadOther;
b = perm & QFile::WriteOther;
b = perm & QFile::ExeOther;
Qt-4.5.2 Thanks
-- With regards Iurii Gordiienko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090827/e2b514c7/attachment.html
More information about the Qt-interest-old
mailing list