aboutsummaryrefslogtreecommitdiff
path: root/core/os/os2/path.odin
blob: eee2b3cee679f099d65aa4fb49f7abcbb95129d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package os2

Path_Separator      :: _Path_Separator;      // OS-Specific
Path_List_Separator :: _Path_List_Separator; // OS-Specific

is_path_separator :: proc(c: byte) -> bool {
	return _is_path_separator(c);
}

mkdir :: proc(name: string, perm: File_Mode) -> Maybe(Path_Error) {
	return _mkdir(name, perm);
}

mkdir_all :: proc(path: string, perm: File_Mode) -> Maybe(Path_Error) {
	return _mkdir_all(path, perm);
}

remove_all :: proc(path: string) -> Maybe(Path_Error) {
	return _remove_all(path);
}



getwd :: proc(allocator := context.allocator) -> (dir: string, err: Error) {
	return _getwd(allocator);
}
setwd :: proc(dir: string) -> (err: Error) {
	return _setwd(dir);
}