Files
zig-squashfs/src/options.zig
T
Caleb J. Gardner a76803aad1 Comments!
2026-01-31 05:14:00 -06:00

21 lines
644 B
Zig

//! Options for file/directory extraction.
const std = @import("std");
const Writer = std.Io.Writer;
const ExtractionOptions = @This();
/// Don't set the file's permissions after extraction
ignorePermissions: bool = false,
/// Don't set the file's owner after extraction.
ignoreOwner: bool = false,
/// Replace symlinks with their target.
dereferenceSymlinks: bool = false,
log_level: std.log.Level = .err,
// /// If options verbose and verboseWriter not set, logs are printed to stdout.
// verboseWriter: ?*Writer = null,
pub const Default: ExtractionOptions = .{};
pub const VerboseDefault: ExtractionOptions = .{ .log_level = .debug };