unit-mesh / auto-dev

🧙‍AutoDev: The AI-powered coding wizard with multilingual support 🌐, auto code generation 🏗️, and a helpful bug-slaying assistant 🐞! Customizable prompts 🎨 and a magic Auto Dev/Testing/Document/Agent feature 🧪 included! 🚀
https://ide.unitmesh.cc/
Mozilla Public License 2.0
2.62k stars 303 forks source link

fix : if subfolder exists, createChildDirectory() will throw "xxx alr… #165

Closed ymli0215 closed 2 months ago

ymli0215 commented 2 months ago

當初我的測試不完整,只測試了檔案有沒有存在的情境,沒有測試多層資料夾是否存在的情境 如果路徑是 a/b/c/xxx.txt,如果 a 資料夾存在,createChildDirectory() 會出現 "already exists in VFS"的錯誤 嘗試修正該問題,測試結果: 獨立devin檔案以及對話視窗都正常產生資料夾+檔案