mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
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:
@@ -205,7 +205,7 @@ Timestamp FileImpl::createdImpl() const
|
|||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat(_path.c_str(), &st) == 0)
|
if (stat(_path.c_str(), &st) == 0)
|
||||||
return Timestamp::fromEpochTime(st.st_mtime);
|
return Timestamp::fromEpochTime(st.st_ctime);
|
||||||
else
|
else
|
||||||
handleLastErrorImpl(_path);
|
handleLastErrorImpl(_path);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user