fix Bug in time sorting
This commit is contained in:
@@ -159,7 +159,7 @@ def getpathlist(path,options=False):
|
||||
paths.append(d)
|
||||
if options:
|
||||
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:
|
||||
paths.sort(reverse=options.reverse,key=lambda x: natural_sort_key(x))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user