mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 20:55:09 +01:00
Fix subfolders
This commit is contained in:
@@ -15,7 +15,7 @@ class DB:
|
||||
return f.read()
|
||||
|
||||
def __setitem__(self, key, val):
|
||||
os.makedirs(self.path, exist_ok=True)
|
||||
Path(self.path / key).absolute().parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
with open(self.path / key, 'w', encoding='utf-8') as f:
|
||||
f.write(val)
|
||||
|
||||
Reference in New Issue
Block a user