diff --git a/src/ioslaves/file/file.cpp b/src/ioslaves/file/file.cpp --- a/src/ioslaves/file/file.cpp +++ b/src/ioslaves/file/file.cpp @@ -854,6 +854,10 @@ #pragma message("TODO: st_uid and st_gid are always zero, use GetSecurityInfo to find the owner") #endif entry.insert(KIO::UDSEntry::UDS_ACCESS_TIME, buff.st_atime); +#ifdef Q_OS_FREEBSD + // FreeBSD's stat contains a field for the inode birth time. + entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.st_birthtime); +#endif } // Note: buff.st_ctime isn't the creation time !