mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-13 18:38:11 +02:00
Fixed DirConf to change the LastFile value to the last file sorted in the folder.
This commit is contained in:
1 parent
bf454bf09b
commit
5dbc03ff7f
2 files changed
+11
-4
No files matched your search
+9
-3
@@ -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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user