From b43c3869a375c151f8bb1fbb39819078d1ea790b Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 8 May 2013 12:17:24 +0100 Subject: [PATCH] get_files_in_node() special target check --- mega/mega.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mega/mega.py b/mega/mega.py index 5a881b3..555ec27 100644 --- a/mega/mega.py +++ b/mega/mega.py @@ -261,8 +261,9 @@ class Mega(object): """ 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) else: node_id = [target]