aboutsummaryrefslogtreecommitdiff
path: root/core/os/os2/path.odin
blob: a3e7a5a9644d89ceea83155f8796218baef7e344 (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
30
31
32
33
34
35
package os2

import "base:runtime"

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 :: make_directory
make_directory :: proc(name: string, perm: File_Mode) -> Error {
	return _mkdir(name, perm)
}

mkdir_all :: make_directory_all
make_directory_all :: proc(path: string, perm: File_Mode) -> Error {
	return _mkdir_all(path, perm)
}

remove_all :: proc(path: string) -> Error {
	return _remove_all(path)
}


getwd :: get_working_directory
get_working_directory :: proc(allocator: runtime.Allocator) -> (dir: string, err: Error) {
	return _getwd(allocator)
}

setwd :: set_working_directory
set_working_directory :: proc(dir: string) -> (err: Error) {
	return _setwd(dir)
}