extraction size convert function to src/misc.py
[findit] / src / searchfile.py
index 7d06a8c..c4000aa 100644 (file)
@@ -9,6 +9,8 @@ from os.path import join, abspath, normcase, basename, \
                             isdir, getsize
 from heapq import nlargest
 
+from misc import size_hum_read
+
 class Search_File_Control(object):
     
     def __init__(self, get_start_data, ignore_dirs, show_func):
@@ -24,7 +26,7 @@ class Search_File_Control(object):
         start_path, count = self.start_data()
         for fsize, fpath in nlargest(count, \
                 self.srch_abs.filegetter(start_path, stopit, label) ):
-            self.filelist.append([fpath, self.srch_abs.size_convert(fsize), fsize])
+            self.filelist.append([fpath, size_hum_read(fsize), fsize])
         show_func(self.filelist)