Skip to content

Commit 42a20b7

Browse files
author
richard
committed
Added upload to destination e.g to readme
1 parent 1b63ef1 commit 42a20b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ file = m.upload('myfile.doc')
6666
m.get_upload_link(file)
6767
# see mega.py for destination and filename options
6868
```
69+
### Upload a file to a destination folder
70+
```python
71+
folder = m.find('my_mega_folder')
72+
m.upload('myfile.doc', folder[0])
73+
```
74+
6975
### Download a file from URL or file obj, optionally specify destination folder
7076
```python
7177
file = m.find('myfile.doc')

0 commit comments

Comments
 (0)