Use your DropBox account as a FileSystem with pyfilesystem
Author : julien@revolunet.com
example
from fs.dropboxfs import DropBoxFS
dropBoxFsConfig = {
'path':'/'
,'consumer_key':'8px67m'
,'consumer_secret':'o61w3o9'
,'user_name':'julien@revolunet.com'
,'user_password':'aTrP5xAhxS7'
}
# open a connection
mydropbox = DropBoxFS(**dropBoxFsConfig)
# list a dir
mydropbox.listdir('/')
# read a file
print mydropbox.open('README.txt','r').read()
# write to a file
mydropbox.open('writeTest.txt', 'w').write('hello, world')
Links
- our FileBrowser with PyFS backend demo
- the PyFileSystem google group