mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +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}?"):
|
if self.io.confirm_ask(f"No files matched '{word}'. Do you want to create {fname}?"):
|
||||||
try:
|
try:
|
||||||
|
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||||
fname.touch()
|
fname.touch()
|
||||||
all_matched_files.add(str(fname))
|
all_matched_files.add(str(fname))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue