def create_folders(path):
    try:
        # Recursive mkdirs if dir path is not complete
        os.makedirs(path)
    except __HOLE__:
        #Already exists, no prob !
        pass
    except Exception as err:
        # Another problem
        raise ResourceException('Failed when creating folders: %s' % err)
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/files-plugin/unix-files.py/create_folders