[Base] Set the path for posix file info

This commit is contained in:
Roy Stewart 2023-02-03 02:40:42 -05:00 committed by Rick Gibbed
parent 4a3b04d4ee
commit 41c423109f
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ std::vector<FileInfo> ListFiles(const std::filesystem::path& path) {
info.create_timestamp = convertUnixtimeToWinFiletime(st.st_ctime); info.create_timestamp = convertUnixtimeToWinFiletime(st.st_ctime);
info.access_timestamp = convertUnixtimeToWinFiletime(st.st_atime); info.access_timestamp = convertUnixtimeToWinFiletime(st.st_atime);
info.write_timestamp = convertUnixtimeToWinFiletime(st.st_mtime); info.write_timestamp = convertUnixtimeToWinFiletime(st.st_mtime);
info.path = path;
if (ent->d_type == DT_DIR) { if (ent->d_type == DT_DIR) {
info.type = FileInfo::Type::kDirectory; info.type = FileInfo::Type::kDirectory;
info.total_size = 0; info.total_size = 0;