[tahoe-lafs-trac-stream] [tahoe-lafs] #1873: add a show-caps command

tahoe-lafs trac at tahoe-lafs.org
Mon Mar 11 05:08:26 UTC 2013


#1873: add a show-caps command
-----------------------------------+--------------------------------
     Reporter:  igor               |      Owner:  igor
         Type:  enhancement        |     Status:  new
     Priority:  normal             |  Milestone:  undecided
    Component:  code-frontend-cli  |    Version:  1.9.2
   Resolution:                     |   Keywords:  tahoe-ls usability
Launchpad Bug:                     |
-----------------------------------+--------------------------------
Changes (by zooko):

 * keywords:  tahoe-ls usability review-needed => tahoe-ls usability


Comment:

 Replying to [comment:9 davidsarah]:
 > My argument was that this should be functionality of {{{tahoe ls}}}
 rather than a separate command, and I pointed out the existing {{{--uri}}}
 and {{{--readonly-uri}}} options.
 >
 > Zooko in comment:3 asked for the ability to diminish a cap that is not
 the child of any directory, but I pointed out in comment:6 that {{{tahoe
 ls --readonly-uri $CAP}}} already does this, ''except'' for the case of
 wanting to diminish a writecap to a directory. So, perhaps {{{tahoe ls
 --readonly-uri $DIRCAP}}} should print the directory readcap as well as
 listing the children?

 Okay I was confused about this until now. Is it fair to say that the
 argument to {{{ls}}} is a "rooted path" (ref #1732), which can denote
 either a file or a directory, and {{{ls}}} shows some facts about the
 thing (such as the filesize if it is the file, or the names and facts
 about its children if it is a directory), and with the {{{--uri}}} option
 it //also// shows the cap to the thing, and with the {{{--readonly-uri}}}
 it //also// shows the read-only cap to the thing?

 Okay, that makes sense now. +1

 So now this patch is insufficient because in the current version of this
 patch, it won't show the cap if the rooted path denotes a directory. Is
 that true?

 Removing the "review-needed" tag.

 Igor: are you willing to extend this patch so it will show the caps of
 directories as well? Assigning to Igor.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1873#comment:10>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list