mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-13 18:38:11 +02:00
7.1: optional ValidInputDirs per [[Files]] entry
An output directory can now take different patterns from different input directories. Entries without it behave as before. Also fixes the README's outdated Names section (InDirConfName/OutDirConfName), NextNum and LogFileName. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
16e6b7196e
commit
78216fc352
5 files changed
+36
-13
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.0")
|
||||
(Version = "7.1")
|
||||
|
||||
|
||||
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.0" # Just the version number for the config file.
|
||||
Version = "7.1" # 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.
|
||||
|
||||
@@ -73,13 +73,13 @@ Logging = 1 # If SaraSortd's logging system should be active. If this is 0, noth
|
||||
OverwriteDirConf = 0 # If SaraSortd should overwrite directory configs with the config templates. 0 is no, 1 is yes.
|
||||
|
||||
[Variables] # Only use these in config files, not the actual file names themselves.
|
||||
NextNum = "*" # The next available number. If 1 already exists, 2 will be used.
|
||||
NextNum = "!" # The next available number. If 1 already exists, 2 will be used.
|
||||
|
||||
NextChar = "&" # The next available character. If A already exists, B will be used.
|
||||
|
||||
Parent = "@" # The name of the parent directory.
|
||||
|
||||
OrgFileName = "\~" # The original name of the sorted file. If "blahblah.txt" gets sorted, "~" would be equal to "blahblah".
|
||||
OrgFileName = "~" # The original name of the sorted file. If "blahblah.txt" gets sorted, "~" would be equal to "blahblah".
|
||||
|
||||
OrgFileType = "^" # The original file type of the sorted file. If "example.png" gets sorted, "^" would be equal to ".png".
|
||||
|
||||
@@ -109,9 +109,11 @@ LogDir = "%RootDir%/.Logs" # Where log files from SaraSortd go.
|
||||
FailedDir ="%RootDir%/.Failed" # For files that failed to be sorted.
|
||||
|
||||
[Names]
|
||||
LogFileName = "[y].[m].[d]._*" # Name for log files.
|
||||
LogFileName = "[y].[m].[d]" # Name for log files.
|
||||
|
||||
DirConfName = ".@Config" # Name for config files for directories.
|
||||
InDirConfName = ".@Config" # Name for config files for input directories.
|
||||
|
||||
OutDirConfName = ".@Config" # Name for config files for output directories. If a directory is both an input and an output and both names are the same, it uses one config file for both.
|
||||
|
||||
FileHistoryName = ".@History" # Name for file history files. This keeps track of sorted files if an input and output are the same directory.
|
||||
|
||||
@@ -158,7 +160,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.0" # The version number of the config.
|
||||
Version = "7.1" # 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.
|
||||
|
||||
@@ -202,6 +204,8 @@ NextChar = "A" # Used to keep track of the next available letter for file names.
|
||||
CaseSensitive = 0 # Whether this "Pattern" is case-sensitive or not. 1 is yes, 0 is no. E.G: if CaseSensitive = 1 and this "Pattern" is "*.PNG", a file named "picture.png" won't get sorted to this directory. If CaseSensitive = 0 and this "Pattern" is "*.PNG", a file named "picture.png" *will* get sorted to this directory.
|
||||
|
||||
Overwrite = 1 # Whether this specific file type can be overwritten by others of the same type. 0 is no, 1 is yes.
|
||||
|
||||
# ValidInputDirs = ["%RootDir%/Downloads"] # Optional (since 7.1). Like the ValidInputDirs above, but only for this [[Files]] entry, so different input directories can send different file types here. Without it, this entry takes files from every input directory the ValidInputDirs above allows.
|
||||
```
|
||||
|
||||
---
|
||||
@@ -212,7 +216,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.0"
|
||||
Version = "7.1"
|
||||
|
||||
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