Use long-form names and alias with short-form UNIX-like names

This commit is contained in:
gingerBill
2024-01-29 13:33:39 +00:00
parent 338793b68e
commit a626adac8e
9 changed files with 57 additions and 37 deletions
+7 -6
View File
@@ -4,11 +4,11 @@ import "core:time"
import "base:runtime"
File_Info :: struct {
fullpath: string,
name: string,
size: i64,
mode: File_Mode,
is_dir: bool,
fullpath: string,
name: string,
size: i64,
mode: File_Mode,
is_directory: bool,
creation_time: time.Time,
modification_time: time.Time,
access_time: time.Time,
@@ -33,7 +33,8 @@ stat :: proc(name: string, allocator: runtime.Allocator) -> (File_Info, Error) {
return _stat(name, allocator)
}
lstat :: proc(name: string, allocator: runtime.Allocator) -> (File_Info, Error) {
lstat :: stat_do_not_follow_links
stat_do_not_follow_links :: proc(name: string, allocator: runtime.Allocator) -> (File_Info, Error) {
return _lstat(name, allocator)
}