[ https://issues.apache.org/jira/browse/HADOOP-6893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andras Bokor resolved HADOOP-6893. ---------------------------------- Resolution: Invalid I read through HADOOP-6678. It seems there was a consensus in community that check existence of a file or directory is preferred through filestatus which is make sense. This did not change in the last 7 years. > 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 was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org