Hi, I'm uploading files to Dropbox from an Arduino Yun using the Python.
This is the code (working fine) I use to upload
# -*- coding: utf-8 -*-
import dropbox
import datetime
suffix = datetime.datetime.now().strftime("%Y%m%d%H%M")
filename = suffix + ".jpg"
client = dropbox.client.DropboxClient('my token here')
f = open('/mnt/sda1/pic.jpg', 'rb')
response = client.put_file(filename, f)
print "uploaded:", response
can you please show me the equivalent to download a file named "myfile.txt" an store it with the same name on the Yun's directory "/mnt/sda1/"
Many thanks in advance