from pathlib import Path


def non_empty_file(path: Path) -> bool:
    """
    :param path: path of a file
    :return: True if given path is a file and is not empty otherwise return False
    """
    return path.is_file() and path.stat().st_size > 0