Fixed DirConf to change the LastFile value to the last file sorted in the folder.

This commit is contained in:
sarah committed 2026-04-06 01:19:30 +02:00
1 parent bf454bf09b
commit 5dbc03ff7f
2 files changed
+11 -4

No files matched your search

+9 -3
View File
@@ -1,11 +1,17 @@
Title = "Unset"
LastFile = "Unset"
ParentDir = "Unset"
[[Files]]
Pattern = "*"
Pattern = "*.jpg"
NewFileName = "~^"
NextNum = 1
NextChar = "A"
CaseSensitive = 0
LastFile = "Unset"
ParentDir = "Unset"
[[Files]]
Pattern = "*.png"
NewFileName = "~^"
NextNum = 1
NextChar = "A"
CaseSensitive = 0
+2 -1
View File
@@ -282,7 +282,8 @@ def Sort(FilePath):
try:
Clone(FilePath, NewDirPath, NewName, True)
UpdateConf(f"{NewDirPath}/{Parse(String = ConfNames["DirConfName"], Parent = os.path.basename(NewDirPath))}.toml", "LastFile", NewName)
TextOutput = Parse(String = ConfLog["Sorted"], VarCall = f"{FilePath} to {NewDirPath}/{NewName}")
LogWrite(TextOutput)
Speak(TextOutput)