viai957's picture
Add files using upload-large-folder tool
63f41a6 verified
Raw History Blame Contribute Delete
342 Bytes
pub fn apply_pax(entry_type: u8, has_pax: bool) -> bool {
let mut is_extension_header = false;
if entry_type == b'L' || entry_type == b'K' || entry_type == b'x' || entry_type == b'g' {
is_extension_header = true;
}
if has_pax {
if is_extension_header { false } else { true }
} else {
false
}
}