mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-15 02:53:17 +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"
|
Title = "Unset"
|
||||||
|
LastFile = "Unset"
|
||||||
|
ParentDir = "Unset"
|
||||||
|
|
||||||
[[Files]]
|
[[Files]]
|
||||||
Pattern = "*"
|
Pattern = "*.jpg"
|
||||||
NewFileName = "~^"
|
NewFileName = "~^"
|
||||||
NextNum = 1
|
NextNum = 1
|
||||||
NextChar = "A"
|
NextChar = "A"
|
||||||
CaseSensitive = 0
|
CaseSensitive = 0
|
||||||
|
|
||||||
LastFile = "Unset"
|
[[Files]]
|
||||||
ParentDir = "Unset"
|
Pattern = "*.png"
|
||||||
|
NewFileName = "~^"
|
||||||
|
NextNum = 1
|
||||||
|
NextChar = "A"
|
||||||
|
CaseSensitive = 0
|
||||||
+2
-1
@@ -282,7 +282,8 @@ def Sort(FilePath):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
Clone(FilePath, NewDirPath, NewName, True)
|
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}")
|
TextOutput = Parse(String = ConfLog["Sorted"], VarCall = f"{FilePath} to {NewDirPath}/{NewName}")
|
||||||
LogWrite(TextOutput)
|
LogWrite(TextOutput)
|
||||||
Speak(TextOutput)
|
Speak(TextOutput)
|
||||||
|
|||||||
Reference in new issue
Block a user