Skip to content

Commit

Permalink
Merge pull request #3064 from bphd/addingDirectoriesAutoCreation
Browse files Browse the repository at this point in the history
Adding directories auto creation
paul-gauthier authored Jan 29, 2025
2 parents 74c8b38 + 31e738a commit fb63f9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aider/commands.py
Original file line number Diff line number Diff line change
@@ -756,6 +756,7 @@ def cmd_add(self, args):

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:

0 comments on commit fb63f9c

Please sign in to comment.