from os.path import join, abspath, normcase, isdir, getsize
from heapq import nlargest
from fnmatch import fnmatch
+from sys import platform
from misc import size_hum_read, _
from config import config
# Store only necessary files
for mask in file_filter:
if fnmatch(fname, mask):
- # Crutch for non-unicode names
- #flpath = unicode(join(dirpath, fname), '1251')
- flpath = join(dirpath, fname)
+ if platform == 'win32':
+ # Crutch for non-unicode names
+ flpath = unicode(join(dirpath, fname), '1251')
+ else:
+ flpath = join(dirpath, fname)
# Show current path
self.presentation.show_current_status(flpath)
# Stop search via 'stopit' signal