enable directory listing with get_files_in_node
This commit is contained in:
parent
24f44137a1
commit
28f69e1977
1 changed files with 6 additions and 1 deletions
|
@ -261,7 +261,12 @@ class Mega(object):
|
||||||
"""
|
"""
|
||||||
Get all files in a given target, e.g. 4=trash
|
Get all files in a given target, e.g. 4=trash
|
||||||
"""
|
"""
|
||||||
|
if target in xrange(0, 4):
|
||||||
|
# convert special nodes
|
||||||
node_id = self.get_node_by_type(target)
|
node_id = self.get_node_by_type(target)
|
||||||
|
else:
|
||||||
|
node_id = [target]
|
||||||
|
|
||||||
files = self.api_request({'a': 'f', 'c': 1})
|
files = self.api_request({'a': 'f', 'c': 1})
|
||||||
files_dict = {}
|
files_dict = {}
|
||||||
shared_keys = {}
|
shared_keys = {}
|
||||||
|
|
Loading…
Reference in a new issue