I
I
i3stone2021-12-03 19:21:35
Python
i3stone, 2021-12-03 19:21:35

How to create a folder and create files in it?

Hey!
How to make such a function that a folder would be created (if it does not exist, and if there is, then skip this step),
and another one would be created in it, and a file would be created in it?
type
def create file:
create folder("folder_1")
create("/folder_1/file.py")

and then through
file.write() it was possible to edit these files?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question