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

View File

@@ -407,7 +407,7 @@ gb_internal ReadDirectoryError read_directory(String path, Array<FileInfo> *fi)
i64 size = dir_stat.st_size;
FileInfo info = {};
info.name = name;
info.name = copy_string(a, name);
info.fullpath = path_to_full_path(a, filepath);
info.size = size;
array_add(fi, info);