def list_valid_objects_in_remote(remote, path='.', size_threshold=0) -> list:
    """
    List non-empty objects in the remote folder

    :param remote: The `RemoteFolder` node to be inspected.
    :param path: The relative path.
    :param size_threshold: The size threshold to treat the object as a valide one.

    :returns: A list of valid objects in the directory.
    """
    none_empty = []
    try:
        contents = remote.listdir_withattributes(path)
    except OSError:
        return []

    for obj in contents:
        if obj['attributes'].st_size > size_threshold and not obj['isdir']:
            none_empty.append(obj['name'])
    return none_empty