Ignore case in file merge order

This commit is contained in:
shortcutme 2018-01-19 02:23:33 +01:00
parent d17cb3fafc
commit b0a125c113
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -18,7 +18,7 @@ def findfiles(path, find_ext):
elif f2 == "":
return -1
else:
return cmp(f1, f2)
return cmp(f1.lower(), f2.lower())
for root, dirs, files in sorted(os.walk(path, topdown=False), cmp=sorter):
for file in sorted(files):