def isEmpty(filename):
    # don't now about stdin
    if filename == "-":
        return False
    return os.stat(filename)[stat.ST_SIZE] == 0
return True if file exists and is empty.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/isEmpty