Function deleteDirAbsolute [src]

Same as Dir.deleteDir except the path is absolute. On Windows, dir_path should be encoded as WTF-8. On WASI, dir_path should be encoded as valid UTF-8. On other platforms, dir_path is an opaque sequence of bytes with no particular encoding.

Prototype

pub fn deleteDirAbsolute(dir_path: []const u8) !void

Parameters

dir_path: []const u8

Source

pub fn deleteDirAbsolute(dir_path: []const u8) !void { assert(path.isAbsolute(dir_path)); return posix.rmdir(dir_path); }