Merge pull request #3267 from harold-b/copy-dirent-path

Retain copies of `dirent->name` for .odin files when using `read_directory`
This commit is contained in:
gingerBill
2024-03-13 12:23:28 +00:00
committed by GitHub
+1 -1
View File
@@ -407,7 +407,7 @@ gb_internal ReadDirectoryError read_directory(String path, Array<FileInfo> *fi)
i64 size = dir_stat.st_size; i64 size = dir_stat.st_size;
FileInfo info = {}; FileInfo info = {};
info.name = name; info.name = copy_string(a, name);
info.fullpath = path_to_full_path(a, filepath); info.fullpath = path_to_full_path(a, filepath);
info.size = size; info.size = size;
array_add(fi, info); array_add(fi, info);