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