package os2

import "base:runtime"

Path_Separator        :: _Path_Separator        // OS-Specific
Path_Separator_String :: _Path_Separator_String // OS-Specific
Path_List_Separator   :: _Path_List_Separator   // OS-Specific

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

mkdir :: make_directory

make_directory :: proc(name: string, perm: int) -> Error {
	return _mkdir(name, perm)
}

mkdir_all :: make_directory_all

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

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

getwd :: get_working_directory

@(require_results)
get_working_directory :: proc(allocator: runtime.Allocator) -> (dir: string, err: Error) {
	return _get_working_directory(allocator)
}

setwd :: set_working_directory

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