From 516aaa1b9f86c10441273c0a5c776602ed027ccc Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Wed, 6 Aug 2008 20:17:31 +0000 Subject: [PATCH] changed stat member to st_ctime for created time (Sergey, add #ifdef for your platform if you want to have st_birthtime) --- Foundation/src/File_UNIX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/src/File_UNIX.cpp b/Foundation/src/File_UNIX.cpp index 595ed6211..dd2761087 100644 --- a/Foundation/src/File_UNIX.cpp +++ b/Foundation/src/File_UNIX.cpp @@ -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;