You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/09/27 03:54:35 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #6034: [INLONG-6033][Agent] Support for hidden directories

healchow commented on code in PR #6034:
URL: https://github.com/apache/inlong/pull/6034#discussion_r980706856


##########
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/AgentUtils.java:
##########
@@ -281,6 +282,13 @@ public static String formatCurrentTimeWithoutOffset(String formatter) {
      * @return true if all match
      */
     public static boolean regexMatch(String pathStr, String patternStr) {
+        // /tmp/dir1/**/test.xml
+        if (patternStr.contains(HIDDEN_DIR)) {
+            if (matchHiddenDir(pathStr, patternStr)) {

Review Comment:
   'if' statement can be simplified.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org