Skip to main content

ensure_segment_files_structure

Function ensure_segment_files_structure 

Source
pub async fn ensure_segment_files_structure(
    dir_path: &Path,
    document_root: &str,
    inner_wrapper: &str,
    xmlns: &str,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Ensure all XML files in a segment directory have structure: document_root (with xmlns) > inner_wrapper (no xmlns) > content. Used after inner-level reassembly for multi-level (e.g. LoyaltyProgramSetup > programProcesses).