def download(remote_location, remotes=None, prefix="<STR_LIT>", dry_run=False):
if remotes is None:<EOL><INDENT>remotes, _ = _resources_files(<EOL>abs_paths=remote_location.startswith('<STR_LIT>'))<EOL><DEDENT>if remote_location.startswith('<STR_LIT>'):<EOL><INDENT>from .s3 import S3Backend<EOL>backend = S3Backend(remote_location, dry_run=dry_run)<EOL>backend.download(list_local(remotes, prefix), prefix)<EOL><DEDENT>else:<EOL><INDENT>dest_root = '<STR_LIT:.>'<EOL>shell_command([<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>' % remote_location, dest_root], dry_run=dry_run)<EOL><DEDENT>
Download resources from a stage server.