mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix Windows os.make_directory.
This commit is contained in:
@@ -389,7 +389,8 @@ change_directory :: proc(path: string) -> Errno {
|
|||||||
return Errno(win32.SetCurrentDirectoryW(wpath))
|
return Errno(win32.SetCurrentDirectoryW(wpath))
|
||||||
}
|
}
|
||||||
|
|
||||||
make_directory :: proc(path: string, mode: u32) -> Errno {
|
make_directory :: proc(path: string, mode: u32 = 0) -> Errno {
|
||||||
|
// Mode is unused on Windows, but is needed on *nix
|
||||||
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
wpath := win32.utf8_to_wstring(path, context.temp_allocator)
|
||||||
return Errno(win32.CreateDirectoryW(wpath, nil))
|
return Errno(win32.CreateDirectoryW(wpath, nil))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user