[ https://issues.apache.org/jira/browse/HADOOP-8934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Allen updated HADOOP-8934: ----------------------------------- Attachment: HADOOP-8934.patch review comments actioned: - sort order for -S corrected - now using PathData.compareTo rather than Path - changes to PathData (& Command) reverted (and a MockFileSystem used in unit tests instead) I didn't know about TestHDFSCLI but have now confirmed change doesn't break any of the existing tests. I'll add some additional tests later this week. > Shell command ls should include sort options > -------------------------------------------- > > Key: HADOOP-8934 > URL: https://issues.apache.org/jira/browse/HADOOP-8934 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Reporter: Jonathan Allen > Assignee: Jonathan Allen > Priority: Minor > Attachments: HADOOP-8934.patch, HADOOP-8934.patch, HADOOP-8934.patch > > > The shell command ls should include options to sort the output similar to the > unix ls command. The following options seem appropriate: > -t : sort by modification time > -S : sort by file size > -r : reverse the sort order > -u : use access time rather than modification time for sort and display -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira