MCPcopy
hub / github.com/rawandahmad698/PyChatGPT / _create_if_not_exists

Method _create_if_not_exists

src/pychatgpt/main.py:59–62  ·  view source on GitHub ↗
(file: str)

Source from the content-addressed store, hash-verified

57
58 @staticmethod
59 def _create_if_not_exists(file: str):
60 if not os.path.exists(file):
61 with open(file, 'w') as f:
62 f.write("")
63
64 def log(self, inout):
65 if self.options is not None and self.options.log:

Callers 1

_setupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected