Changed "WriteDirConf" to "OverwriteDirConf" so that it makes more sense what it does.

This commit is contained in:
sarah committed 2026-04-06 01:43:10 +02:00
1 parent 42adeae8b7
commit 6feca9ba32
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ SilentMode = 0
CheckInput = 3
DotFiles = 0
Logging = 1
WriteDirConf = 1
OverwriteDirConf = 0
[Variables]
NextNum = "!"
+1 -1
View File
@@ -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")