Added case sensitivity to sorting.

This commit is contained in:
sarah committed 2026-04-05 23:43:15 +02:00
1 parent ab2b678a4d
commit 59bdf90775
3 files changed
+15 -6

No files matched your search

+7 -1
View File
@@ -241,7 +241,13 @@ def DecideNewPath(FilePath):
LogWrite(TextOutput)
Speak(TextOutput)
if fnmatch.fnmatch(UnsortedFile, Pattern):
if (File["CaseSensitive"] == 1):
Match = fnmatch.fnmatchcase(UnsortedFile, Pattern)
else:
Match = fnmatch.fnmatch(UnsortedFile.lower(), Pattern.lower())
if Match:
NewFileName = File["NewFileName"]
if (ConfVars["NextNum"] in NewFileName):