[ https://issues.apache.org/jira/browse/HADOOP-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551573 ]
Doug Cutting commented on HADOOP-2381: -------------------------------------- > failure of 'ls -ld' is recognized by looking for 'No such file or directory' > in the IOException thrown. Any better way? The exit status is '2' when the file isn't found, and '0' when it is, no? Also, instead of commenting out LOG.debug lines, we can just remove them. Otherwise this looks good. A possible enhancement would be to load permissions for directories under listStatus(). That should be more efficient when permissions are accessed, since we'd only exec 'ls' once, but we'd end up doing it even when permissions are not accessed. Perhaps we should leave this to a subsequent issue? > Support permission information in FileStatus > -------------------------------------------- > > Key: HADOOP-2381 > URL: https://issues.apache.org/jira/browse/HADOOP-2381 > Project: Hadoop > Issue Type: New Feature > Components: fs > Affects Versions: 0.15.0 > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Raghu Angadi > Fix For: 0.16.0 > > Attachments: 2381_20071207.patch, HADOOP-2381.patch, > HADOOP-2381.patch, HADOOP-2381.patch, HADOOP-2381.patch > > > In HADOOP-2288, FileSystem API is changed to support access control. > FileStatus should also be changed to support permission information. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.