pub fn create_ar(dir: &Path, to: &Path) -> Result<(), Error>
Returns error if failed to create ar file.