From 42a20b710d148e2411374f3bfa908e2988462ec2 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 11 Jun 2013 00:05:52 +0100 Subject: [PATCH] Added upload to destination e.g to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index faff93a..8f5faa3 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ file = m.upload('myfile.doc') m.get_upload_link(file) # see mega.py for destination and filename options ``` +### Upload a file to a destination folder +```python +folder = m.find('my_mega_folder') +m.upload('myfile.doc', folder[0]) +``` + ### Download a file from URL or file obj, optionally specify destination folder ```python file = m.find('myfile.doc')