enable directory listing with get_files_in_node

This commit is contained in:
Christian Kornacker 2013-05-06 15:04:02 +02:00
parent 24f44137a1
commit 28f69e1977

View file

@ -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 = {}