You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andras Bokor (JIRA)" <ji...@apache.org> on 2017/04/26 09:50:04 UTC

[jira] [Resolved] (HADOOP-6893) FileContext needs a method to test for existence of a file or directory.

     [ 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org