hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HADOOP-6893) FileContext needs a method to test for existence of a file or directory.
Date Wed, 26 Apr 2017 09:50:04 GMT

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


Mime
View raw message