changed stat member to st_ctime for created time

(Sergey, add #ifdef for your platform if you want to have st_birthtime)
This commit is contained in:
Aleksandar Fabijanic 2008-08-06 20:17:31 +00:00
parent 54edf45085
commit 516aaa1b9f

View File

@ -205,7 +205,7 @@ Timestamp FileImpl::createdImpl() const
struct stat st;
if (stat(_path.c_str(), &st) == 0)
return Timestamp::fromEpochTime(st.st_mtime);
return Timestamp::fromEpochTime(st.st_ctime);
else
handleLastErrorImpl(_path);
return 0;