Added FileHistoryName to config, allowing an input and output dir to be

the same and stopping recursion by saving the new file name. Also fixed
hour, minute, second, and so to be at least 2 wide (19:2:3 => 19:02:03)
This commit is contained in:
sarah committed 2026-04-20 19:58:29 +02:00
1 parent e91ce510fc
commit 51c557d228
3 files changed
+58 -18

No files matched your search

+4 -3
View File
@@ -1,7 +1,7 @@
Title = "SaraSortd Config"
SafeMode = 1
SilentMode = 0
CheckInput = 10
CheckInput = 5
DotFiles = 0
Logging = 1
OverwriteDirConf = 0
@@ -21,7 +21,7 @@ Second = "[s]"
VarCall = "%%"
[DirectoryPaths]
RootDir = "Unset"
RootDir = "/home/sarah/TestDir"
InputDir = [ "%RootDir%/Input" ]
OutputDir = [ "%RootDir%/Output" ]
LogDir = "%RootDir%/.Logs"
@@ -30,12 +30,13 @@ FailedDir = "%RootDir%/.Failed"
[Names]
LogFileName = "[y].[m].[d]"
DirConfName = ".@Config"
FileHistoryName = ".@History"
[Log]
All = "[h]:[n]:[s] | "
Start = "Started SaraSortd."
NotStart = "Error: Failed to start SaraSortd."
Stop = "\nStopped SaraSortd."
Stop = "Stopped SaraSortd.\n"
MatchPattern = "Checking %%."
Sorted = "Sorted %%."
NotSorted = "Error: Failed to sort %%. No valid output directory."