mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Fix #4968
This commit is contained in:
@@ -5,9 +5,10 @@ import "core:strings"
|
||||
|
||||
@(require_results)
|
||||
read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []File_Info, err: Error) {
|
||||
dupfd := _dup(fd) or_return
|
||||
context.allocator = allocator
|
||||
|
||||
dirp := _fdopendir(dupfd) or_return
|
||||
dupfd := _dup(fd) or_return
|
||||
dirp := _fdopendir(dupfd) or_return
|
||||
defer _closedir(dirp)
|
||||
|
||||
dirpath := absolute_path_from_handle(dupfd) or_return
|
||||
|
||||
Reference in New Issue
Block a user