Added upload to destination e.g to readme
This commit is contained in:
parent
1b63ef1c98
commit
42a20b710d
1 changed files with 6 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue