def path_exists_and_not_empty(path):
    if os.path.exists(path):
        for root, dirs, file_names in os.walk(path):
            break
        if len(file_names) > 0:
            return True
    return False

###############################################################################
This function may be overriden by an inheriting class to handle any
dataset/ETHPy150Open VisTrails/VisTrails/extensions/latex/includecrowdlabs.py/path_exists_and_not_empty--crossover with--dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/SafeProcess/safe_process.py/SafeProcess.config