get_files_in_node() special target check

This commit is contained in:
richard 2013-05-08 12:17:24 +01:00
parent 9773f1e58c
commit b43c3869a3

View file

@ -261,8 +261,9 @@ 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 if type(target) == int:
# convert special nodes (e.g. trash)
node_id = self.get_node_by_type(target) node_id = self.get_node_by_type(target)
else: else:
node_id = [target] node_id = [target]