mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-13 18:38:11 +02:00
Changed "WriteDirConf" to "OverwriteDirConf" so that it makes more sense what it does.
This commit is contained in:
1 parent
42adeae8b7
commit
6feca9ba32
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ SilentMode = 0
|
||||
CheckInput = 3
|
||||
DotFiles = 0
|
||||
Logging = 1
|
||||
WriteDirConf = 1
|
||||
OverwriteDirConf = 0
|
||||
|
||||
[Variables]
|
||||
NextNum = "!"
|
||||
|
||||
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user