From 2ab31983bbbd227114e18ed123b099b73c061f35 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Sun, 1 Feb 2015 07:56:07 +0000 Subject: [PATCH] ls output is sorted by default --- kippo/commands/ls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kippo/commands/ls.py b/kippo/commands/ls.py index c107204a..188ef3ec 100644 --- a/kippo/commands/ls.py +++ b/kippo/commands/ls.py @@ -45,6 +45,7 @@ class command_ls(HoneyPotCommand): def do_ls_normal(self, path): try: files = self.honeypot.fs.get_path(path) + files.sort() except: self.honeypot.writeln( 'ls: cannot access %s: No such file or directory' % path) @@ -76,6 +77,7 @@ class command_ls(HoneyPotCommand): def do_ls_l(self, path): try: files = self.honeypot.fs.get_path(path)[:] + files.sort() except: self.honeypot.writeln( 'ls: cannot access %s: No such file or directory' % path)