def _file_mtime_recent(planner, resource):
    """Returns true if a file has been more recently modified."""
    history = planner.history[planner.task.hash]
    previous = history['inputs'][resource.ref()]
    current = planner.platform.file_mtime(resource.path)
    if current > previous:
        return True
    return False
