mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-13 18:38:11 +02:00
7.2: directory configs can live outside their directories
DirConfDir keeps every directory's config (and history file) in one folder, and [DirConfs] names a file for single directories, like SaraTag's Lexicons and Records. Both are optional; without them configs stay inside the directories as before. Clone now copies straight to the new name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
aef32f6f3b
commit
4389a1c76e
5 files changed
+97
-53
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<img align="center" src="https://git.srhtnin.garden/sarah/RepoAssets/raw/branch/main/SaraSortd/Banners/SaraSortd.png" width="100%" alt="SaraSortd: a file and directory sorting daemon built with python."/>
|
||||
|
||||
(Version = "7.1")
|
||||
(Version = "7.2")
|
||||
|
||||
|
||||
It's made by Sarah, hence the name. :3
|
||||
@@ -58,7 +58,7 @@ Here's a step-by-step tutorial (in case you don't want to watch the video).
|
||||
```
|
||||
Title = "SaraSortd Config" # NOTE: Do not change the title. This is so that the program knows which config file is which.
|
||||
|
||||
Version = "7.1" # Just the version number for the config file.
|
||||
Version = "7.2" # Just the version number for the config file.
|
||||
|
||||
SafeMode = 1 # If SaraSortd should stop if an error with the config appears. 1 is stop, 0 is continue.
|
||||
|
||||
@@ -108,6 +108,13 @@ LogDir = "%RootDir%/.Logs" # Where log files from SaraSortd go.
|
||||
|
||||
FailedDir ="%RootDir%/.Failed" # For files that failed to be sorted.
|
||||
|
||||
DirConfDir = "" # Optional (since 7.2). Where directory configs live. If this is "", every directory keeps its config inside itself. If it's set, the configs (and history files) of all directories go here instead, so the directories stay clean. Relative paths count from GlobalConf.toml's own folder. E.G: DirConfDir = "Dirs"
|
||||
# Each config is named after its directory's path below RootDir, with "/" turned into "_", and InDirConfName/OutDirConfName applied without the leading ".". E.G: "%RootDir%/Pictures/Cats" gets "Pictures_CatsConfig.toml".
|
||||
|
||||
[DirConfs] # Optional (since 7.2). A config file for one directory, wherever you like. These win over DirConfDir. Relative paths count from GlobalConf.toml's own folder. E.G:
|
||||
# "%RootDir%/Downloads" = "Configs/Downloads.toml"
|
||||
# "%RootDir%/Pictures" = { In = "Configs/PicturesIn.toml", Out = "Configs/PicturesOut.toml" } # Separate input and output configs.
|
||||
|
||||
[Names]
|
||||
LogFileName = "[y].[m].[d]" # Name for log files.
|
||||
|
||||
@@ -160,7 +167,7 @@ The output directory config references the SaraSortd config (GlobalConf.toml). T
|
||||
```
|
||||
Title = "Unset" # NOTE: Do not change the title. This is so that the program knows which config file is which.
|
||||
|
||||
Version = "7.1" # The version number of the config.
|
||||
Version = "7.2" # The version number of the config.
|
||||
|
||||
LastFile = "Unset" # The last file that was sorted to this directory. It gets automatically updated whenever a file gets sorted to this directory.
|
||||
|
||||
@@ -216,7 +223,7 @@ Overwrite = 1 # Whether this specific file type can be overwritten by others of
|
||||
```
|
||||
Title = "Unset" # NOTE: Do not change the title. This is so that the program knows which config file is which.
|
||||
|
||||
Version = "7.1"
|
||||
Version = "7.2"
|
||||
|
||||
ParentDir = "Unset" # The name of this directory. It gets automatically updated when this config gets copied to an output directory.
|
||||
|
||||
|
||||
Reference in new issue
Block a user