TUCJVXCB commented on code in PR #11499:
URL: https://github.com/apache/camel/pull/11499#discussion_r1334942475
##########
components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java:
##########
@@ -314,14 +317,15 @@ public FileEndpoint getEndpoint() {
@Override
protected boolean isMatchedHiddenFile(GenericFile<File> file, boolean
isDirectory) {
- if (getEndpoint().isIncludeHiddenFiles()) {
- if (isDirectory) {
- // skip hidden folders
- String name = file.getFileNameOnly();
- if (name.startsWith(".")) {
- return false;
- }
+ if (isDirectory) {
+ String name = file.getFileNameOnly();
+ if (!name.startsWith(".")) {
+ return true;
}
+ return getEndpoint().isIncludeHiddenDir() &&
!".camel".equals(name);
Review Comment:
well,I think so, i will update
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]