From 2af049e0917e9f9a7ada964f16454cc86382bcc0 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Wed, 18 Jun 2014 21:02:49 +0300 Subject: [PATCH] fix Bug in time sorting --- Qalbum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qalbum.py b/Qalbum.py index 4780f32..773a300 100755 --- a/Qalbum.py +++ b/Qalbum.py @@ -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: