Add os.stat, os.lstat, os.fstat, filepath.walk

This commit is contained in:
gingerBill
2020-09-28 12:28:02 +01:00
parent 2ebb94fa72
commit 9ae3879956
6 changed files with 170 additions and 32 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []F
h := win32.HANDLE(fd);
dir_fi, _ := stat_from_file_information("", h);
dir_fi, _ := file_info_from_get_file_information_by_handle("", h);
if !dir_fi.is_dir {
return nil, ERROR_FILE_IS_NOT_DIR;
}