DoxigAlpha

writeLink

Function parameters

Parameters

#
w:*Writer
sub_path:[]const u8
link_name:[]const u8

Options for writing file/dir/link.

Types

#
Options
Options for writing file/dir/link.
Header
A struct that is exactly 512 bytes and matches tar file format.

Sets prefix for all other write* method paths.

Functions

#
setRoot
Sets prefix for all other write* method paths.
writeFileStream
Writes file reading file content from `reader`.
writeFileBytes
Writes file using bytes buffer `content` for size and file content.
finishPedantically
According to the specification, tar should finish with two zero blocks, but

Error sets in this namespace

Error Sets

#

Source

Implementation

#
pub fn writeLink(w: *Writer, sub_path: []const u8, link_name: []const u8, options: Options) Error!void {
    try w.writeHeader(.symbolic_link, sub_path, link_name, 0, options);
}