36 Commits
Author SHA1 Message Date
sarah a6a5b28631 7.5: Windows support 2026-10-09 14:00:38 +02:00
sarahandClaude Opus 5.5 4a52120b1a 7.4: never sort files that are still downloading
Files ending in .part, .crdownload or .download (any case), and a file next
to its own unfinished download (Firefox's empty placeholder), are skipped
before any pattern check, folder zipping or unzipping.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 10:52:18 +02:00
sarahandClaude Opus 5.5 234889ba6d 7.3: fix nested variables, catch-alls, paths and shared configs
- %Name% lookups also resolve inside the values they bring in, and unknown
  names are left as they are instead of crashing.
- Catch-all patterns ("*") are a fallback: specific patterns are tried first
  across all outputs, so a catch-all output listed first no longer takes
  every file.
- Directory paths only get %Name% lookups and date/time variables, so
  ! & @ ~ ^ in a path stay as they are; a leading ~ is the home directory.
- A directory config missing keys (one shared by a directory's input and
  output roles) gets them from the template instead of crashing SaraSortd.
- The history of a directory that sorts into itself compares file names as
  they are, so names with variable characters aren't re-sorted forever.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-08 18:18:02 +02:00
sarahandClaude Opus 5.5 4389a1c76e 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]>
2026-10-08 18:09:49 +02:00
sarahandClaude Opus 5.5 aef32f6f3b Update NextNum/NextChar by entry position, not by Pattern
Two [[Files]] entries can now share a Pattern (with different
ValidInputDirs), and the counter of the first one was bumped for both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-07 22:50:11 +02:00
sarahandClaude Opus 5.5 78216fc352 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]>
2026-10-07 22:23:36 +02:00
sarah 19ceec218f Renamed CheckInput tot SortTimer, added Unzip parameter with a list, and
fixed sorting directories to not need admin (at least on linux).
2026-05-10 23:33:44 +02:00
sarah 2cc72b1730 Added unzipping function, but haven't tested it yet. 2026-05-10 21:42:21 +02:00
sarah b5afad3895 Changed file structure and moved assets to separate repository to keep
stuff clean. Also moved LICENSE up.
2026-05-02 14:24:48 +02:00
sarah 4901d346f2 Added a new banner and icons for SaraSortd. (Calindra is the demon's
name.)
2026-05-02 00:47:32 +02:00
Sarah Aadalen-Aasheim e9974f90ee Added banners to make README look prettier. 2026-04-30 10:42:03 +02:00
sarah f0b2ec62ef Added function to InputDirConf, including pattern and if the input
should sort directories or not. Also added zipping functions to move
said directories. TODO: Add unzipping functions.
2026-04-29 07:50:04 +02:00
sarah 2afadaebc8 Fixed NextNum and NextChar bug. Also changed all mentions of Version to
be (Version = "5.1") for easier replacement for new updates.
2026-04-28 15:36:44 +02:00
sarah 0f2f6673aa Renamed files. 2026-04-21 11:12:44 +02:00
sarah 24c52c17ce Added versioning in files, and fixed config files to be unset. 2026-04-20 20:09:07 +02:00
sarah 51c557d228 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)
2026-04-20 19:58:29 +02:00
sarah d68550d0a9 Added delete parameter to dirconf. 2026-04-14 07:20:38 +02:00
sarah cbf1a4049c Added stacking of NextNum and NextChar. E.G: && into AA => "AB" instead
of && into AA => "BB". Also, !! into 01 => 02 instead of !! into 11 =>
22.

This was surprisingly difficult to achieve.
2026-04-10 22:01:30 +02:00
sarah c73f3493c5 Added a FileLimit parameter to DirConfig to limit the amount of files in
an output directory.
2026-04-10 19:02:04 +02:00
sarah 05c5a7b1c1 Added an overwrite parameter to [[Files]], to allow or deny overwriting
of specific files.
2026-04-10 18:30:49 +02:00
sarah 33af48076f Added a parameter that specifies where a file has to be from to be valid
for sorting. E.G: If this file isn't from this directory, I don't want
it in this output directory.
2026-04-10 17:55:34 +02:00
sarah 6feca9ba32 Changed "WriteDirConf" to "OverwriteDirConf" so that it makes more sense what it does. 2026-04-06 01:43:10 +02:00
sarah 42adeae8b7 Added an option to write directory configs or not. 2026-04-06 01:41:24 +02:00
sarah 5dbc03ff7f Fixed DirConf to change the LastFile value to the last file sorted in the folder. 2026-04-06 01:19:30 +02:00
sarah bf454bf09b Removed Running, since it's very ineffective. 2026-04-06 01:08:57 +02:00
sarah 8ffcaadba5 Added Logging parameter in Config.toml to turn off or on the logging system. 2026-04-06 00:11:24 +02:00
sarah 332b071fab Added a Running parameter to Config.toml. If it's 1, the program runs. If it's 0, it stops. 2026-04-06 00:02:22 +02:00
sarah 59bdf90775 Added case sensitivity to sorting. 2026-04-05 23:43:15 +02:00
sarah 4a5221494f Fixed NextNum and NextChar to increment and properly work. 2026-04-03 23:20:16 +02:00
sarah fda62dd53c Todo: README.md 2026-04-03 21:36:39 +02:00
sarah 3b06574b62 It works! Sorry for lack of pushes. :p 2026-04-03 21:23:13 +02:00
sarah 51ecfe53b5 Fixed most everything to work well enough. TODO: Add input folders, sorting, and output folders. 2026-04-02 22:01:24 +02:00
sarah ef5b40ffef Fixed ConfCheck so that it doesn't raise nonexistent errors. 2026-04-02 15:43:43 +02:00
sarah 8abe270d93 Added a replacer function in Parse() to check for %RootDir% and others. 2026-04-02 15:31:00 +02:00
sarah eb4ca3264b Removed and commented some Parameters in Config, and added much more to SaraSortd.py 2026-04-02 14:57:52 +02:00
sarah ee8c83039c Added more variables to config and changed things to use SaraSortd instead of Sarasort. 2026-03-27 13:39:25 +01:00