You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
356 B
14 lines
356 B
import os
|
|
|
|
|
|
# Make dir
|
|
def make_dir(path_dir):
|
|
path_dir = str(path_dir)
|
|
try:
|
|
if not os.path.exists(path_dir):
|
|
os.makedirs(path_dir)
|
|
print("Ready ('make_dir'). '{path_dir}'".format(path_dir=path_dir))
|
|
except Exception as e:
|
|
print("Error while executing 'make_dir()'. {e}".format(e=e))
|
|
return path_dir
|