fix Bug in time sorting
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user