[
https://issues.apache.org/jira/browse/CAMEL-8266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290981#comment-14290981
]
ASF GitHub Bot commented on CAMEL-8266:
---------------------------------------
GitHub user shreyaspurohit opened a pull request:
https://github.com/apache/camel/pull/380
CAMEL-8266 Allows ignoring directories for SFTP/FTP having no read
permission using ignoreFileNotFoundOrPermissionError
@davsclaus
This adds ignoring read directory permission error using the same flag
'ignoreFileNotFoundOrPermissionError'.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shreyaspurohit/camel CAMEL-8266
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/380.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #380
----
commit 3c53313d0fcb2fd31110cd47f3981ea98bf3081f
Author: Shreyas Purohit <[email protected]>
Date: 2015-01-25T04:31:14Z
CAMEL-8266 Allows ignoring directories for SFTP/FTP having no read
permission using ignoreFileNotFoundOrPermissionError
----
> [camel-sftp] Allow directories which are un-readable to be ignored on
> permission error
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-8266
> URL: https://issues.apache.org/jira/browse/CAMEL-8266
> Project: Camel
> Issue Type: Improvement
> Components: camel-sftp
> Affects Versions: 2.14.1
> Reporter: Shreyas Purohit
> Priority: Minor
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> When reading from SFTP server recursively it is possible that we read a
> directory that are not having permission to be read. Specifically, lost+found
> directory created by the OS with root permission. We should be able to ignore
> these kind of errors.
> I can fix this and submit patch but would need guidance towards the better
> approach:
> 1. Re-use IgnoreFileNotFoundOrPermissionError flag and extend its
> functionality
> 2. Add a new flag to ignore these errors
> I think the first approach is better as I consider directories to be also a
> special type of files. I can work on this if you let me know which way to go
> from someone in Apache Camel team.
> Thanks,
> Shreyas Purohit
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)