in sdk/src/utils/FileSystemUtils.cc [181:198]
bool AlibabaCloud::PDS::GetPathInfo(const std::wstring& path, time_t& t, std::streamsize& size)
{
struct pds_stat buf;
auto filename = path.c_str();
#if defined(_WIN32) && _MSC_VER < 1900
std::wstring tmp;
if (!path.empty() && (path.rbegin()[0] == WPATH_DELIMITER)) {
tmp = path.substr(0, path.size() - 1);
filename = tmp.c_str();
}
#endif
if (pds_wstat(filename, &buf) != 0)
return false;
t = buf.st_mtime;
size = static_cast<std::streamsize>(buf.st_size);
return true;
}