mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
Merge pull request #3064 from bphd/addingDirectoriesAutoCreation
Adding directories auto creation
This commit is contained in:
commit
fb63f9cc92
1 changed files with 1 additions and 0 deletions
|
@ -756,6 +756,7 @@ class Commands:
|
|||
|
||||
if self.io.confirm_ask(f"No files matched '{word}'. Do you want to create {fname}?"):
|
||||
try:
|
||||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
all_matched_files.add(str(fname))
|
||||
except OSError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue