filelist = []
outtype, start_path, count, file_filter = get_criteria()
search_func = self.abstrac.filegetter(start_path, file_filter, get_stopit)
+
for fsize, fpath in nlargest(count, search_func):
filelist.append([int(fsize), fpath, size_hum_read(fsize)])
- self.present.show_out_toplevel(outtype, filelist)
+
+ results = [filelist, start_path]
+ self.present.show_out_toplevel(outtype, results)
def run(self):
self.present.run()
# Store only necessary files
for mask in file_filter:
if fnmatch(fname, mask):
- flpath = abspath(join(dirpath, fname))
+ flpath = join(dirpath, fname)
# Show current path
self.presentation.show_current_status(flpath)
# Stop search via 'stopit' signal