shubham added a comment.
I had used permission() to get the mode_t variable, which I later type casted to qint64, still the permissions resulted were completed wrong. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D20735 To: shubham, ngraham, pino Cc: pino, kde-frameworks-devel, michaelh, ngraham, bruns