mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
fix os.makeDir for posix
This commit is contained in:
parent
0bc80411f6
commit
a68dc65327
@ -783,7 +783,7 @@ pub fn makeDirWindows(allocator: &Allocator, dir_path: []const u8) -> %void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn makeDirPosix(allocator: &Allocator, dir_path: []const u8) -> %void {
|
pub fn makeDirPosix(allocator: &Allocator, dir_path: []const u8) -> %void {
|
||||||
const path_buf = cstr.addNullByte(allocator, dir_path);
|
const path_buf = %return cstr.addNullByte(allocator, dir_path);
|
||||||
defer allocator.free(path_buf);
|
defer allocator.free(path_buf);
|
||||||
|
|
||||||
const err = posix.getErrno(posix.mkdir(path_buf.ptr, 0o755));
|
const err = posix.getErrno(posix.mkdir(path_buf.ptr, 0o755));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user