Here is my code:
**************************************************************
from boxsdk import JWTAuth, Client
sdk = JWTAuth.from_settings_file('****_config.json')
client = Client(sdk)
service_account = client.user().get()
print('Service Account user ID is {0}'.format(service_account.id))
user=client.user(user_id = service_account)
root_folder = client.root_folder().get()
items = root_folder.get_items()
for item in items:
print('{0} {1} is named "{2}"'.format(item.type.capitalize(), item.id, item.name))
with open(item.name, 'wb') as open_file:
client.file(item.id).download_to("C:/"+open_file)
print('downloaded')
open_file.close()
*********************************************************************
Program runs fine but nothing getting downloaded to my C drive.