Replies: 3 comments 1 reply
-
Try this:
Working on this feature rn, but stick it in your |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you
…On Thu, Apr 6, 2023 at 11:14 PM Toran Bruce Richards < ***@***.***> wrote:
Try this:
def make_directory(directory):
try:
directory = safe_join(working_directory, directory)
if not os.path.exists(directory):
os.makedirs(directory)
return "Directory created successfully."
except Exception as e:
return "Error: " + str(e)
Working on this feature rn, but stick it in your file_operations.py and
use it how you link until then. :)
—
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZFGYC5PNQRZUGIJ74LPNTW76BDHANCNFSM6AAAAAAWWECWB4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Robert DeVivo*
Founder
*T: 347.879.0056*
*E: ***@***.*** ***@***.***>*
*http://www.mtbmedia.com <http://www.mtbmedia.com>*
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I am trying your solution, but auto-gpt always wants to use the command create_directory. How do I update it's commands list ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ERROR:
SYSTEM: Command mkdir returned: Unknown command mkdir
Can you have it make directors and files locally on your machine or does that not work ?
Beta Was this translation helpful? Give feedback.
All reactions