Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file.cpp
Show First 20 Lines • Show All 848 Lines • ▼ Show 20 Line(s) | 848 | if (details > 0) { | |||
---|---|---|---|---|---|
849 | entry.insert(KIO::UDSEntry::UDS_MODIFICATION_TIME, buff.st_mtime); | 849 | entry.insert(KIO::UDSEntry::UDS_MODIFICATION_TIME, buff.st_mtime); | ||
850 | #ifndef Q_OS_WIN | 850 | #ifndef Q_OS_WIN | ||
851 | entry.insert(KIO::UDSEntry::UDS_USER, getUserName(KUserId(buff.st_uid))); | 851 | entry.insert(KIO::UDSEntry::UDS_USER, getUserName(KUserId(buff.st_uid))); | ||
852 | entry.insert(KIO::UDSEntry::UDS_GROUP, getGroupName(KGroupId(buff.st_gid))); | 852 | entry.insert(KIO::UDSEntry::UDS_GROUP, getGroupName(KGroupId(buff.st_gid))); | ||
853 | #else | 853 | #else | ||
854 | #pragma message("TODO: st_uid and st_gid are always zero, use GetSecurityInfo to find the owner") | 854 | #pragma message("TODO: st_uid and st_gid are always zero, use GetSecurityInfo to find the owner") | ||
855 | #endif | 855 | #endif | ||
856 | entry.insert(KIO::UDSEntry::UDS_ACCESS_TIME, buff.st_atime); | 856 | entry.insert(KIO::UDSEntry::UDS_ACCESS_TIME, buff.st_atime); | ||
857 | #ifdef Q_OS_FREEBSD | ||||
858 | // FreeBSD's stat contains a field for the inode birth time. | ||||
859 | entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.st_birthtime); | ||||
860 | #endif | ||||
857 | } | 861 | } | ||
858 | 862 | | |||
859 | // Note: buff.st_ctime isn't the creation time ! | 863 | // Note: buff.st_ctime isn't the creation time ! | ||
860 | // We made that mistake for KDE 2.0, but it's in fact the | 864 | // We made that mistake for KDE 2.0, but it's in fact the | ||
861 | // "file status" change time, which we don't care about. | 865 | // "file status" change time, which we don't care about. | ||
862 | 866 | | |||
863 | return true; | 867 | return true; | ||
864 | } | 868 | } | ||
▲ Show 20 Lines • Show All 498 Lines • Show Last 20 Lines |