pub fn export_packet_with_source( frontier: &Project, source_path: Option<&Path>, output_dir: &Path, ) -> Result<PacketExportRecord, String>