def METHOD_NAME(tar, path):
    '''add directory entry to mock'''
    if path.is_symlink() and path.name in ('subsystem', 'driver', 'firmware_node'):
        logging.warning(f'skipping dangling symlink: {path}')
        return
    logging.info(f'adding dir: {path}')
    info = get_info(tar, path)
    tar.addfile(info)