removed list_files, which was just calling get_path

implemented wildcard aware path resolving


git-svn-id: https://kippo.googlecode.com/svn/trunk@74 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2009-11-24 21:35:51 +00:00
parent 8f8814e705
commit aa451bc2fd
3 changed files with 34 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ class command_ls(HoneyPotCommand):
def do_ls_normal(self, path):
try:
files = self.honeypot.fs.list_files(path)
files = self.honeypot.fs.get_path(path)
except:
self.honeypot.writeln(
'ls: cannot access %s: No such file or directory' % path)
@@ -71,7 +71,7 @@ class command_ls(HoneyPotCommand):
def do_ls_l(self, path):
try:
files = self.honeypot.fs.list_files(path)[:]
files = self.honeypot.fs.get_path(path)[:]
except:
self.honeypot.writeln(
'ls: cannot access %s: No such file or directory' % path)