This checks if the specified directory exists and therefore prevents the CLI from crashing in if f"{name}.json" in os.listdir(f"{self.projectDir}/{path}"): if the specified directory does not exist.
I don't know why git marks so many lines as changed, since I only added a surrounding if and an additional else. Is this just do to the indention on python or is it my mistake? Sorry if the latter is the case and please tell me how an can correct it in that case.
This checks if the specified directory exists and therefore prevents the CLI from crashing in
if f"{name}.json" in os.listdir(f"{self.projectDir}/{path}"):
if the specified directory does not exist.I don't know why git marks so many lines as changed, since I only added a surrounding
if
and an additionalelse
. Is this just do to the indention on python or is it my mistake? Sorry if the latter is the case and please tell me how an can correct it in that case.