Download code/bugfind/bench/kernels/tar_pax/post/src/lib.rs from viai957/align: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/tar_pax/post/src/lib.rs
- Command line
-
hf download hf://viai957/align/code/bugfind/bench/kernels/tar_pax/post/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/tar_pax/post/src/lib.rs
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 | |
| } | |
| } | |