[6f9c00]: / utils / common_utils.py

Download this file

17 lines (13 with data), 326 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
"""
Contains commong functions useful throughout the application
"""
import os
def create_if_not(path):
"""
Creates a folder at the given path if one doesnt exist before
===
:param path: destination to check for existense
:return: None
"""
if not os.path.exists(path):
os.makedirs(path)