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)