]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tahoe_ls: list individual files
authorBrian Warner <warner@lothar.com>
Sun, 21 Oct 2007 19:33:06 +0000 (12:33 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 21 Oct 2007 19:33:06 +0000 (12:33 -0700)
src/allmydata/scripts/tahoe_ls.py

index 259cf4a67c3fef4fe2544e7178ea94f3fd9aaf3a..9b69d3149a5f3a36b49cb799c46191baee085b06 100644 (file)
@@ -25,6 +25,8 @@ def list(nodeurl, root_uri, vdrive_pathname, stdout, stderr):
                 assert childtype == "filenode"
                 size = child[1]['size']
                 print >>stdout, "%10s %s" % (size, name)
+    elif nodetype == "filenode":
+        print >>stdout, "%10s %s" % (d['size'], vdrive_pathname)