Skip to main content

process_file

Function process_file 

Source
pub fn process_file(index: usize, path: &Path, ops: &BatchOps) -> FileResult
Expand description

Processes a single file, running all requested operations.

NEVER calls crate::commands::validate / stats / list — those have side effects (process::exit). We call lib3mf-core APIs directly:

  • model.validate(level) → ValidationReport
  • model.compute_stats(&archiver) → ModelStats
  • archiver.list_entries() → Vec<String>