From 6feca9ba32f9f7750944f7ad88a7f036627136d8 Mon Sep 17 00:00:00 2001 From: Sarahtonin Date: Mon, 6 Apr 2026 01:43:10 +0200 Subject: [PATCH] Changed "WriteDirConf" to "OverwriteDirConf" so that it makes more sense what it does. --- Config.toml | 2 +- SaraSortd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.toml b/Config.toml index 22e4afe..8a3e3d9 100644 --- a/Config.toml +++ b/Config.toml @@ -4,7 +4,7 @@ SilentMode = 0 CheckInput = 3 DotFiles = 0 Logging = 1 -WriteDirConf = 1 +OverwriteDirConf = 0 [Variables] NextNum = "!" diff --git a/SaraSortd.py b/SaraSortd.py index 83a7b93..c1329a8 100644 --- a/SaraSortd.py +++ b/SaraSortd.py @@ -195,7 +195,7 @@ def Dir(Path, Output = True, CopyConf = True): if (CopyConf): NewDirConf = f"{Parse(String = ConfNames["DirConfName"], Path = ConfPath, Parent = ParentName)}.toml" - if (Conf["WriteDirConf"] == 1 or not os.path.exists(os.path.join(f"{Path}/{NewDirConf}"))): + if (Conf["OverwriteDirConf"] == 1 or not os.path.exists(os.path.join(f"{Path}/{NewDirConf}"))): Clone("DirConfig.toml", Path, NewDirConf) UpdateConf(f"{Path}/{Parse(String = ConfNames["DirConfName"], Path = ConfPath, Parent = ParentName)}.toml", "ParentDir", ParentName) UpdateConf(f"{Path}/{Parse(String = ConfNames["DirConfName"], Path = ConfPath, Parent = ParentName)}.toml", "Title", f"{ParentName} Config")