fix Bug in time sorting

This commit is contained in:
ville rantanen
2014-06-18 21:02:49 +03:00
parent 08dafda29b
commit 2af049e091

View File

@@ -159,7 +159,7 @@ def getpathlist(path,options=False):
paths.append(d) paths.append(d)
if options: if options:
if options.timesort: if options.timesort:
paths.sort(key=lambda f: os.path.getmtime(f),reverse=options.reverse) paths.sort(key=lambda f: os.path.getmtime(os.path.join(path,f)),reverse=options.reverse)
else: else:
paths.sort(reverse=options.reverse,key=lambda x: natural_sort_key(x)) paths.sort(reverse=options.reverse,key=lambda x: natural_sort_key(x))
else: else: