mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Add os.stat, os.lstat, os.fstat, filepath.walk
This commit is contained in:
+9
-2
@@ -14,8 +14,15 @@ File_Info :: struct {
|
||||
access_time: time.Time,
|
||||
}
|
||||
|
||||
file_info_delete :: proc(fi: File_Info) {
|
||||
delete(fi.fullpath);
|
||||
file_info_slice_delete :: proc(infos: []File_Info, allocator := context.allocator) {
|
||||
for i := len(infos)-1; i >= 0; i -= 1 {
|
||||
file_info_delete(infos[i], allocator);
|
||||
}
|
||||
delete(infos, allocator);
|
||||
}
|
||||
|
||||
file_info_delete :: proc(fi: File_Info, allocator := context.allocator) {
|
||||
delete(fi.fullpath, allocator);
|
||||
}
|
||||
|
||||
File_Mode :: distinct u32;
|
||||
|
||||
Reference in New Issue
Block a user