[Qt-interest] Invalid permissions for folder[SOLVED]!
Iurii Gordiienko
hordi at ukr.net
Fri Aug 28 08:51:17 CEST 2009
I was found where I was wrong! extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
++qt_ntfs_permission_lookup;
//code for checking the permissions --qt_ntfs_permission_lookup;
--- Original Message ---
From: "Iurii Gordiienko" <hordi at ukr.net>
To: qt-interest at trolltech.com
Date: 27 august, 13:02:45
Subject: [Qt-interest] Invalid permissions for folder!
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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
Погода на черноморских курортах.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090828/2b5cf037/attachment.html
More information about the Qt-interest-old
mailing list