@Override
    public boolean equals(Object object) {
        if (object instanceof PathPattern) {
            PathPattern entity = (PathPattern) object;
            return entity.rootDir.equals(this.rootDir);
        } else {
            return false;
        }
    }
when job is retry job, the time for searching file should be specified.
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/task/PathPattern.java