sync_commit: refactor out file downloads