copy

Function copy 

Source
pub fn copy(input: PathBuf, output: PathBuf) -> Result<()>
Expand description

Copy and re-package a 3MF file.

Reads the input file, parses it into memory, and writes it back to a new file. This verifies that lib3mf can successfully parse and re-serialize the model.

§Arguments

  • input - Input 3MF file path
  • output - Output 3MF file path

§Errors

Returns an error if parsing or writing fails.