def isEmpty(filename):
    # don't now about stdin
    if filename == "-":
        return False
    return os.stat(filename)[stat.ST_SIZE] == 0
Does basic ModelAdmin option validation. Calls custom validation
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/isEmpty--crossover with--dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/admin/validation.py/validate