[ http://issues.apache.org/jira/browse/HADOOP-281?page=all ]
Doug Cutting updated HADOOP-281: -------------------------------- Status: Resolved (was: Patch Available) Resolution: Fixed I just committed this. Thanks, Wendy! Ben: yes, it would be a feature, but a feature with many bugs. There are lots of places in the current API that assume files are distinct from directories. So, perhaps, in a separate issue, we could discuss adding this as a feature (and how we'd implement it on linux and windows), but, for now, the most consistent thing to do is treat it as a bug. > 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