path.odin 673 B

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