def isComplete(filename):
    if filename.endswith(".gz"):
        raise NotImplementedError(
            'isComplete not implemented for compressed files')
    if isEmpty(filename):
        return False
    lastline = getLastLine(filename)
    return lastline.startswith("# job finished")
return True if file exists and is complete.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/isComplete