From 24c52c17ce2fd34c1b04bc730db183965cd4b22f Mon Sep 17 00:00:00 2001 From: Sarahtonin Date: Mon, 20 Apr 2026 20:09:07 +0200 Subject: [PATCH] Added versioning in files, and fixed config files to be unset. --- .Github/README.md | 7 ++++++- Config.toml | 3 ++- DirConfig.toml | 1 + SaraSortd.py | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.Github/README.md b/.Github/README.md index 5688f34..0b5ec6e 100644 --- a/.Github/README.md +++ b/.Github/README.md @@ -1,4 +1,5 @@ # SaraSortd +(Version 4.0) A python daemon that can automatically sort your files to your liking without using AI. @@ -33,7 +34,7 @@ toml: Use ```pip install toml``` to install toml. ## Installation -Here's an [installation video.](https://youtu.be/ZMIaOhZA0kE). +Here's an [installation video](https://youtu.be/ZMIaOhZA0kE). Here's a step-by-step tutorial (in case you don't want to watch the video). 1. Install ZIP-file. @@ -50,6 +51,8 @@ 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. +Version = "4.0" # 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. SilentMode = 0 # If SaraSortd should write things it does, to the terminal. @@ -138,6 +141,8 @@ The output directory config references the SaraSortd config (Config.toml). This ``` Title = "Unset" # The title of the config. This currently does nothing for SaraSortd, so it can be anything. It gets automatically updated when DirConfig.toml gets copied to an output directory. +Version = "4.0" # 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. ParentDir = "Unset" # The name of this directory. It gets automatically updated when DirConfig.toml gets copied to an output directory. diff --git a/Config.toml b/Config.toml index dcad170..38374af 100644 --- a/Config.toml +++ b/Config.toml @@ -1,4 +1,5 @@ Title = "SaraSortd Config" +Version = "4.0" SafeMode = 1 SilentMode = 0 CheckInput = 5 @@ -21,7 +22,7 @@ Second = "[s]" VarCall = "%%" [DirectoryPaths] -RootDir = "/home/sarah/TestDir" +RootDir = "Unset" InputDir = [ "%RootDir%/Input" ] OutputDir = [ "%RootDir%/Output" ] LogDir = "%RootDir%/.Logs" diff --git a/DirConfig.toml b/DirConfig.toml index c728179..5ec450d 100644 --- a/DirConfig.toml +++ b/DirConfig.toml @@ -1,4 +1,5 @@ Title = "Unset" +Version = "4.0" LastFile = "Unset" ParentDir = "Unset" ValidInputDirs = ["*"] diff --git a/SaraSortd.py b/SaraSortd.py index 70dc726..435dda5 100644 --- a/SaraSortd.py +++ b/SaraSortd.py @@ -6,6 +6,8 @@ import shutil import time import toml +# Version 4.0 + ConfPath = "./Config.toml" Conf = None