python/data_mining/script_utils.py
def mkdirp(path):
    """Recursively creates directories to the specified path"""
    if os.path.exists(path):
        if not os.path.isdir(path):
            raise IOError('{} exists and is not a directory'.format(path))
    else:
        os.makedirs(path)
Recursively creates directories to the specified path
Recursively creates directories to the specified path
Recursively creates directories to the specified path
def mkdirp(path):
    if os.path.exists(path):
        if not os.path.isdir(path):
            raise IOError('{} exists and is not a directory'.format(path))
    else:
        os.makedirs(path)
def mkdirp ( path ) : if os . path . exists ( path ) : if not os . path . isdir ( path ) : raise IOError ( '{} exists and is not a directory' . format ( path ) ) else : os . makedirs ( path )
Recursively creates directories to the specified path
Recursively creates directories to the specified path
"""Recursively creates directories to the specified path"""
path