Implement basic file download for sync purpose