mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
refactor: improve file handling and error reporting in Coder class
This commit is contained in:
parent
b6b4fc6fab
commit
01964ca294
2 changed files with 17 additions and 12 deletions
|
@ -292,6 +292,7 @@ def format_tokens(count):
|
|||
|
||||
|
||||
def touch_file(fname):
|
||||
fname = Path(fname)
|
||||
try:
|
||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue