diff --git a/README.md b/README.md index a0aa41a..070a370 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This is a work in progress, further functionality coming shortly. ### Upload a file, and get its public link file = m.upload('myfile.doc') - m.get_link(file) + m.get_upload_link(file) ### Download a file from URL or it's ID,key combo m.download('utYjgSTQ','OM4U3V5v_W4N5edSo0wolg1D5H0fwSrLD3oLnLuS9pc') diff --git a/mega.py b/mega.py index 779fddd..1b674ec 100644 --- a/mega.py +++ b/mega.py @@ -92,7 +92,7 @@ class Mega(object): files_dict[file['h']] = self.process_file(file) return files_dict - def get_link(self, file): + def get_upload_link(self, file): ''' Get a files public link including decrypted key Currently only works if passed upload() output diff --git a/tests/test.py b/tests/test.py index d230e97..01e8ef7 100644 --- a/tests/test.py +++ b/tests/test.py @@ -27,7 +27,7 @@ def test(): ##get file's public link #NOTE: currently this only works with upload() file obj, as below file = m.upload('test.py') - print(m.get_link(file)) + print(m.get_upload_link(file)) ##trash a file, by id or url #print(m.delete('f14U0JhD'))