def is_empty(filename):
    try:
        return os.stat(filename).st_size == 0
    except OSError:
        # Non-existent file or permission denied to the parent dir
        return False
Is a file empty?
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/is_empty