more windows fixes

This commit is contained in:
q66 2017-03-10 04:11:36 +01:00
parent 52da0ab7ae
commit 82233ec61e

View file

@ -66,9 +66,9 @@ void file_info::init_from_str(string_range path) {
p_type = file_type::UNKNOWN; p_type = file_type::UNKNOWN;
} }
p_atime = detail::filetime_to_time_t(attr.ftLastAccessTime); p_atime = filetime_to_time_t(attr.ftLastAccessTime);
p_mtime = detail::filetime_to_time_t(attr.ftLastWriteTime); p_mtime = filetime_to_time_t(attr.ftLastWriteTime);
p_ctime = detail::filetime_to_time_t(attr.ftCreationTime); p_ctime = filetime_to_time_t(attr.ftCreationTime);
#else #else
if (S_ISREG(st.st_mode)) { if (S_ISREG(st.st_mode)) {
p_type = file_type::REGULAR; p_type = file_type::REGULAR;