mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 13:00:28 +00:00
os/os2: fix mkdir_all on posix with abs path
This commit is contained in:
@@ -40,7 +40,7 @@ _mkdir_all :: proc(path: string, perm: int) -> Error {
|
||||
|
||||
internal_mkdir_all :: proc(path: string, perm: int) -> Error {
|
||||
dir, file := filepath.split(path)
|
||||
if file != path {
|
||||
if file != path && dir != "/" {
|
||||
if len(dir) > 1 && dir[len(dir) - 1] == '/' {
|
||||
dir = dir[:len(dir) - 1]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user