8 rmag = gtk.recent_manager_get_default()
9 items = rmag.get_items()
10 items.sort(cmp=lambda a, b: cmp(a.get_visited(), b.get_visited()))
14 filepath = item.get_uri_display()
15 filepath = filepath.rstrip(os.path.sep)
16 isdir = os.path.isdir(filepath)
18 if item.is_local() and not item.get_private_hint():
19 print "%s\t%s%s" % (item.get_mime_type(), filepath, os.path.sep if isdir and not filepath.endswith(os.path.sep) else '')
22 dirpath = os.path.dirname(filepath)
23 if dirpath not in dirs:
25 print "inode/directory\t%s/" % (dirpath,)