'Create a path by checking if it already exists'

def _make_path(self, path, ignore_existing=True):

    try:
        os.makedirs(path)
    except OSError:
        exp = sys.exc_info()[1]
        if ((exp.errno == errno.EEXIST) and (not ignore_existing)):
            raise exp
