From 596a6d1ae18ce74bbc8e62ce12f6760098106d60 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 11 May 2023 23:24:29 -0700 Subject: [PATCH] make parent dirs --- aider/coder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/coder.py b/aider/coder.py index 322f6e426..12892c2be 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -408,6 +408,7 @@ class Coder: self.console.print(f"[red]Skipping edit to {path}") continue + Path(full_path).parent.mkdir(parents=True, exist_ok=True) Path(full_path).touch() self.abs_fnames.add(full_path)