diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-07 15:14:47 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-07 15:14:47 -0500 |
| commit | c25d9417d34fc7745ed50fdfe2984895657254d5 (patch) | |
| tree | 9bed61822bdb568e9ba2a18b060c9f57898205b2 | |
| parent | abe7305e169be2047d65f96e6525d3828684f058 (diff) | |
| download | zig-c25d9417d34fc7745ed50fdfe2984895657254d5.tar.gz zig-c25d9417d34fc7745ed50fdfe2984895657254d5.zip | |
fix std.fs.makeDirAbsolute
closes #4671
| -rw-r--r-- | lib/std/fs.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 88806f69bb..3a1076d083 100644 --- a/lib/std/fs.zig +++ b/lib/std/fs.zig @@ -266,7 +266,7 @@ const default_new_dir_mode = 0o755; /// Asserts that the path is absolute. See `Dir.makeDir` for a function that operates /// on both absolute and relative paths. pub fn makeDirAbsolute(absolute_path: []const u8) !void { - assert(path.isAbsoluteC(absolute_path)); + assert(path.isAbsolute(absolute_path)); return os.mkdir(absolute_path, default_new_dir_mode); } @@ -1669,6 +1669,8 @@ pub fn realpathAlloc(allocator: *Allocator, pathname: []const u8) ![]u8 { } test "" { + _ = makeDirAbsolute; + _ = makeDirAbsoluteZ; _ = @import("fs/path.zig"); _ = @import("fs/file.zig"); _ = @import("fs/get_app_data_dir.zig"); |
