path.odin 658 B

12345678910111213141516171819202122232425262728293031
  1. package os2
  2. import "core:runtime"
  3. Path_Separator :: _Path_Separator // OS-Specific
  4. Path_List_Separator :: _Path_List_Separator // OS-Specific
  5. is_path_separator :: proc(c: byte) -> bool {
  6. return _is_path_separator(c)
  7. }
  8. mkdir :: proc(name: string, perm: File_Mode) -> Error {
  9. return _mkdir(name, perm)
  10. }
  11. mkdir_all :: proc(path: string, perm: File_Mode) -> Error {
  12. return _mkdir_all(path, perm)
  13. }
  14. remove_all :: proc(path: string) -> Error {
  15. return _remove_all(path)
  16. }
  17. getwd :: proc(allocator: runtime.Allocator) -> (dir: string, err: Error) {
  18. return _getwd(allocator)
  19. }
  20. setwd :: proc(dir: string) -> (err: Error) {
  21. return _setwd(dir)
  22. }