Skip to main content

sidecar_path

Function sidecar_path 

Source
pub fn sidecar_path(input: &Path) -> PathBuf
Expand description

Derive the .idx sidecar path by appending .idx to the input path.

ยงExamples

assert_eq!(
    pcap_toolkit::sort::index::sidecar_path(std::path::Path::new("/tmp/traffic.pcap")),
    std::path::PathBuf::from("/tmp/traffic.pcap.idx"),
);