Opened at 2008-06-11T00:54:16Z
Last modified at 2010-02-02T05:51:54Z
#457 closed defect
tahoe ls fails if you list a file — at Initial Version
Reported by: | robk | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | eventually |
Component: | code-frontend-cli | Version: | 1.0.0 |
Keywords: | news-done | Cc: | |
Launchpad Bug: |
Description
in experimenting with 'tahoe ls' I found that directories display, but that there's no '-l' or even '-F' indication of what's a file and what's a directory
furthermore, if you 'tahoe ls' a file, tahoe explodes
Traceback (most recent call last): File "/Users/robk/trees/tahoe/support/bin/tahoe", line 7, in ? sys.exit( File "/Users/robk/trees/tahoe/src/allmydata/scripts/runner.py", line 77, in run rc = runner(sys.argv[1:]) File "/Users/robk/trees/tahoe/src/allmydata/scripts/runner.py", line 66, in runner rc = cli.dispatch[command](so, stdout, stderr) File "/Users/robk/trees/tahoe/src/allmydata/scripts/cli.py", line 235, in list stdout, stderr) File "/Users/robk/trees/tahoe/src/allmydata/scripts/tahoe_ls.py", line 55, in list childtype = child[0] KeyError: 0
when it tries to unpack the json packed structure of the 'specified directory' i.e. tahoe ls assumes only directories will be named, and fails if a file is named, but provides no indication either way.
Note: See
TracTickets for help on using
tickets.