![]() ![]() upload ( 'myfile.doc', folder ) Download a file from URL or file obj, optionally specify destination folder file = m. find ( 'my_mega_folder', exclude_deleted = True ) Upload a file to a destination folder folder = m. find ( 'my_mega_folder' ) # Excludes results which are in the Trash folder (i.e. !WlVl1CbZ!M3wmhwZDENMNUJoBsdzFng Find a file or folder folder = m. export ( 'my_mega_folder/my_sub_folder_to_share' ) # e.g. ![]() export ( 'myfile.doc' ) public_exported_web_link = m. get_upload_link ( file ) # see mega.py for destination and filename options Export a file or folder public_exported_web_link = m. get_files () Upload a file, and get its public link file = m. get_storage_space ( kilo = True ) Get account files files = m. get_quota () Get account storage space # specify unit output kilo, mega, gig, else bytes will output space = m. get_balance () Get account disk quota quota = m. get_user () Get account balance (Pro accounts only) balance = m. login ( email, password ) # login using a temporary anonymous account m = mega. py Import mega.py from mega import Mega Create an instance of Mega.py mega = Mega () Login to Mega m = mega. Run the following command, or run setup from the latest github source. This is a work in progress, further functionality coming shortly.įor more detailed information see API_INFO.md How To Use Create a Mega accountįirst, create an account with Mega. ![]()
0 Comments
Leave a Reply. |