[
https://issues.apache.org/jira/browse/HADOOP-6893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894465#action_12894465
]
Owen O'Malley commented on HADOOP-6893:
---------------------------------------
I see now that there is a Util method that checks exist, but it still uses
getFileStatus and catches the exception. There should be some way of asking an
AbstractFileSystem whether a name exists that doesn't throw an exception.
> FileContext needs a method to test for existence of a file or directory.
> ------------------------------------------------------------------------
>
> Key: HADOOP-6893
> URL: https://issues.apache.org/jira/browse/HADOOP-6893
> Project: Hadoop Common
> Issue Type: New Feature
> Components: fs
> Reporter: Owen O'Malley
>
> FileContext is missing a method to ask if a file or directory exists.
> Currently the only mechanism is to use getFileStatus, which throws an
> exception if the file doesn't exist, which I don't think is an appropriate
> use of that method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.