ijokarumawak commented on a change in pull request #3294: NIFI-6004 PutFile 
created directory permissions
URL: https://github.com/apache/nifi/pull/3294#discussion_r293202494
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFile.java
 ##########
 @@ -81,6 +83,9 @@
 
     public static final String FILE_MODIFY_DATE_ATTRIBUTE = 
"file.lastModifiedTime";
     public static final String FILE_MODIFY_DATE_ATTR_FORMAT = 
"yyyy-MM-dd'T'HH:mm:ssZ";
+    
+    public static final Pattern RWX_PATTERN = 
Pattern.compile("^([r-][w-])([x-])([r-][w-])([x-])([r-][w-])([x-])$");
+    public static final Pattern NUM_PATTERN = Pattern.compile("\\d+");
 
 Review comment:
   Should we use more strict regex? Such as `^\d+$` or even `^[0-7]{3}$`?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to