mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Mockup of the new package os interface (incomplete and non-functioning)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
//+private
|
||||
package os2
|
||||
|
||||
_Path_Separator :: '\\';
|
||||
_Path_List_Separator :: ';';
|
||||
|
||||
_is_path_separator :: proc(c: byte) -> bool {
|
||||
return c == '\\' || c == '/';
|
||||
}
|
||||
|
||||
_mkdir :: proc(name: string, perm: File_Mode) -> Maybe(Path_Error) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
_mkdir_all :: proc(path: string, perm: File_Mode) -> Maybe(Path_Error) {
|
||||
// TODO(bill): _mkdir_all for windows
|
||||
return nil;
|
||||
}
|
||||
|
||||
_remove_all :: proc(path: string) -> Maybe(Path_Error) {
|
||||
// TODO(bill): _remove_all for windows
|
||||
return nil;
|
||||
}
|
||||
|
||||
_getwd :: proc(allocator := context.allocator) -> (dir: string, err: Error) {
|
||||
return "", nil;
|
||||
}
|
||||
|
||||
_setwd :: proc(dir: string) -> (err: Error) {
|
||||
return nil;
|
||||
}
|
||||
Reference in New Issue
Block a user