From a26a6e2eae57253de40f40a2220d8c1684cd9809 Mon Sep 17 00:00:00 2001 From: "richard@richard.do" Date: Thu, 7 Feb 2013 18:08:45 +0000 Subject: [PATCH] Added file search function and get public link function --- CONTRIBUTORS | 1 + mega.py | 2 -- tests/test.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 468af56..9b87731 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,3 +1,4 @@ cyberjujum richardasaurus +jlejeune issues: zbahoui,alyssarowan diff --git a/mega.py b/mega.py index 8b48dd4..988571b 100644 --- a/mega.py +++ b/mega.py @@ -138,8 +138,6 @@ class Mega(object): if file[1]['a'] and file[1]['a']['n'] == filename: return file - - def move(self, file_id, target): #TODO node_id improvements ''' diff --git a/tests/test.py b/tests/test.py index cd6ba17..e549985 100644 --- a/tests/test.py +++ b/tests/test.py @@ -30,13 +30,11 @@ def test(): ##search for a file on mega files = m.find('test.py') - if files: #trash a file by it's id #iterate to trash multiple results print(m.delete(files[1]['k'])) - ##download file, by id+key or url #m.download('6hBW0R4a','By7-Vjj5xal8K5w_IXH3PlGNyZ1VvIrjZkOmHGq1X00') #m.download_url('https://mega.co.nz/#!6hBW0R4a!By7-Vjj5xal8K5w_IXH3PlGNyZ1VvIrjZkOmHGq1X00')