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

###############################################################################
Start a domain based on the XML-file path passed to the function
dataset/ETHPy150Open VisTrails/VisTrails/extensions/latex/includevistrail.py/path_exists_and_not_empty--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/virt.py/create_xml_path