hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-778) Path.toString() should retain trailing '/' if passed in constructor
Date Tue, 05 Dec 2006 18:58:23 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-778?page=comments#action_12455728 ] 
            
Doug Cutting commented on HADOOP-778:
-------------------------------------

> Does it break something if Path retains trailing '/'  [ ... ]  ?

Did you try it?  My guess is that lots of unit tests would fail.  It significantly simplifies
path manipulation if there is a single normal form for paths.  It is not generally possible
to tell from a name alone whether something is a file or a directory, one must query the FileSystem
to determine this.


> Path.toString() should retain trailing '/' if passed in constructor
> -------------------------------------------------------------------
>
>                 Key: HADOOP-778
>                 URL: http://issues.apache.org/jira/browse/HADOOP-778
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>            Reporter: Sanjay Dahiya
>
> Does it break something if Path retains trailing '/' if passed in constructor and returns
it back in toString() ? 
> Looking at Path.toString() JobClient wont have a way of knowing which Paths were intended
to be directories and not files, in the context of globbed regex ( HADOOP-619 ). 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message