Learn more about cloning repositories
You have read-only access
Use perrorMsg instead of perror and keep removing files if we encounter an error.