mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
make dirs for new files
This commit is contained in:
parent
89149b307d
commit
9ef50d8f3d
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ class Coder:
|
|||
for fname in abs_fnames:
|
||||
if not fname.exists():
|
||||
self.console.print(f"[bright_black]Creating {fname}")
|
||||
fname.touch(parents=True)
|
||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
try:
|
||||
repo_path = git.Repo(fname, search_parent_directories=True).git_dir
|
||||
repo_paths.append(repo_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue