pub fn setRoot(w: *Writer, root: []const u8) Error!void
Sets prefix for all other write* method paths. root is assumed to use / for any path separators.
root
/
w: *Writer
root: []const u8
WriteFailed
OctalOverflow
NameTooLong
31 32 33 34 35 36
pub fn setRoot(w: *Writer, root: []const u8) Error!void { if (root.len > 0) try w.writeDir(root, .{}); w.prefix = root; }
Sets prefix for all other write* method paths.
rootis assumed to use/for any path separators.