sorting
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@76 f711b948-2313-0410-aaa9-d29f33439f0b
This commit is contained in:
parent
b1f2a56881
commit
efcd0f0cfd
|
@ -50,7 +50,7 @@ class TCOS_Card(ISO_7816_4_Card):
|
|||
return None
|
||||
_find_recursive = staticmethod(_find_recursive)
|
||||
|
||||
_ls_l_template = "%(name)10s\t%(type)s\t%(size)4s"
|
||||
_ls_l_template = "%(name)-12s\t%(type)3s\t%(size)4s"
|
||||
def cmd_list(self, *options):
|
||||
"""List all EFs and DFs in current DF. Call with -l for verbose information (caution: deselects current file)"""
|
||||
dirs = self.list_x(1)
|
||||
|
@ -69,6 +69,8 @@ class TCOS_Card(ISO_7816_4_Card):
|
|||
|
||||
if "-l" in options:
|
||||
print self._ls_l_template % {"name": "Name", "type": "Type", "size": "Size"}
|
||||
dirs.sort()
|
||||
files.sort()
|
||||
for FID in dirs:
|
||||
name = "[" + utils.hexdump(FID, short=True) + "]"
|
||||
type = "DF"
|
||||
|
|
Loading…
Reference in New Issue