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 } }