get_files_in_node() special target check
This commit is contained in:
parent
9773f1e58c
commit
b43c3869a3
1 changed files with 3 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue