[ http://issues.apache.org/jira/browse/HADOOP-281?page=comments#action_12430987 ] Benjamin Reed commented on HADOOP-281: --------------------------------------
Have we considered this to be a feature. Some newer general purpose file system allow a file to also be a directory (and visa versa). It is an abstraction that nicely folds in the functionality of streams and resource forks. For example, rather than sticking crcs and other attributes for a file in the same directory as a file (which necessitates a bunch of ugly skip logic in the code), we could simply put them in a subdirectory of the file. > dfs.FSDirectory.mkdirs can create sub-directories of a file! > ------------------------------------------------------------ > > Key: HADOOP-281 > URL: http://issues.apache.org/jira/browse/HADOOP-281 > Project: Hadoop > Issue Type: Bug > Affects Versions: 0.3.1 > Reporter: Sameer Paranjpye > Assigned To: Wendy Chien > Fix For: 0.6.0 > > Attachments: addNode.patch, TestDFSMkdirs.java > > > dfs.FSDirectory.mkdirs will merrily adds children to a directory tree node > without checking whether it represents a directory. So it is possible to > create a subdirectories of a file. -- 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
