blob: bcd2a49e3e1907bbc0bcf94a82cb819fc5670dd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import os
import sys
def create_dirs(dirs):
try:
for dir_ in dirs:
if not os.path.exists(dir_):
os.makedirs(dir_)
except Exception as err:
print(f'Creating directories error: {err}')
sys.exit()
|