Function setRoot [src]

Sets prefix for all other write* method paths.

Prototype

pub fn setRoot(w: *Writer, root: []const u8) Error!void

Parameters

w: *Writerroot: []const u8

Possible Errors

NameTooLong
OctalOverflow
WriteFailed

Source

pub fn setRoot(w: *Writer, root: []const u8) Error!void { if (root.len > 0) try w.writeDir(root, .{}); w.prefix = root; }