Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QUrlInfo and ftp permissions

$
0
0
Hi everyone. I am working on a project (for personal use) which includes FTP client built with QFtp and Qt 4.8 I know most of you will say that the right way to go is QNetworkAccessManager, but I found QFtp to be faster to implement. I am facing problems determining a file or directory permissions. According to the docs for QUrlInfo::PermissionSpecs [qt-project.org] QUrlInfo::ReadOwner 00400 The file is readable by the owner of the file. QUrlInfo::WriteOwner 00200 The file is writable by the owner of the file. QUrlInfo::ExeOwner 00100 The file is executable by the owner of the file. QUrlInfo::ReadGroup 00040 The file is readable by the group. QUrlInfo::WriteGroup 00020 The file is writable by the group. QUrlInfo::ExeGroup 00010 The file is executable by the group. QUrlInfo::ReadOther 00004 The file is readable by anyone. QUrlInfo::WriteOther 00002 The file is writable by anyone. QUrlInfo::ExeOther 00001 The file is executable by anyone. This means that QUrlInfo should return 777 (or 00777?) when there are full permissions, but I receive 511 instead of 777 and 493 instead of 755 Does anyone know why I get such results? How can I test the permissions of a file or directory with QUrlInfo? Also, since QUrlInfo is “read only” (any changes doesn’t affect the remote file or directory, only the information in the object), how can I update the permissions of the remote file or directory?

Viewing all articles
Browse latest Browse all 13965

Trending Articles