def download(server_path, local_path='<STR_LIT:.>'):
session.token = verify_credentials()<EOL>is_item, resource_id = _find_resource_id_from_path(server_path)<EOL>if resource_id == -<NUM_LIT:1>:<EOL><INDENT>print('<STR_LIT>'.format(server_path))<EOL><DEDENT>else:<EOL><INDENT>if is_item:<EOL><INDENT>_download_item(resource_id, local_path)<EOL><DEDENT>else:<EOL><INDENT>_download_folder_recursive(resource_id, local_path)<EOL><DEDENT><DEDENT>
Recursively download a file or item from the Midas Server instance.

:param server_path: The location on the server to find the resource to
    download
:type server_path: string
:param local_path: The location on the client to store the downloaded data
:type local_path: string