#!/usr/bin/env python
# -*- coding: utf-8 -*-
import Folder

def select_each(item):
  def select_print(path):
    # print str(Folder.getDepth(item)) + ': folder:' + Folder.getPath(item) + ' => ' + path
    if item['path'] == path:
      return
    if (len(item['path']) < len(path)) or (len(item['path']) == len(path) and item['path'] < path):
      print str(len(item['path'])) + ': folder:' + item['path'] + ' => ' + path
    else:
      print str(len(path)) + ': folder:' + path + ' => ' + item['path']
  map(select_print, item['dup'])

def select_duplicate(list):
  map(select_each, list)

@@ -340,32 +340,68 @@
 th):%0A      print
+ str(Folder.getDepth(item)) + ': ' +
  str(len(item%5B'p
@@ -464,24 +464,26 @@
  else:%0A     
+ #
  print str(l
@@ -537,16 +537,29 @@
 'path'%5D%0A
+      return%0A
   map(se

update output filtering