else:
if not self.delete:
if tree.TEST_MODE:
# TODO - doesn't windows have backslash? test on my other machine later
sslog(f"TEST_MODE: create file: {self.cwd}/{file_name}")
else:
if not os.path.exists(os.path.join(self.cwd, file_name)):
with open(os.path.join(self.cwd, file_name), "w") as f:
f.write(t.value)
else:
sslog("file already exists")
else:
try:
# os.remove(os.path.join(self.cwd, file_name))
This issue was automatically created by a github action that converts project Todos to issues.
https://github.com/byteface/sharpshooter/blob/0f6c3e759e2612b51b0fdba8655f58894cd425ee/sharpshooter/__init__.py#L504