[tahoe-lafs-trac-stream] [tahoe-lafs] #2082: it says "option --node-dir not a unique prefix", but it is!

tahoe-lafs trac at tahoe-lafs.org
Wed Sep 11 06:17:40 UTC 2013


#2082: it says "option --node-dir not a unique prefix", but it is!
---------------------------------+---------------------------
 Reporter:  zooko                |          Owner:
     Type:  defect               |         Status:  new
 Priority:  normal               |      Milestone:  undecided
Component:  code-frontend-cli    |        Version:  1.10.0
 Keywords:  usability error cli  |  Launchpad Bug:
---------------------------------+---------------------------
 {{{
 zooko at spark ~/tmp/tahoe-lafs.org/z/backup_of_klog $ tahoe cp --node-dir
 =~/.tahoe-basedirs/leastauthority-zookog_at_gmail.com/gateway/ blog.html
 $RWDIRCAP
 Usage: tahoe cp [options] FROM.. TO
 Options:
   -q, --quiet             Operate silently.
   -V, --version           Display version numbers.
       --version-and-path  Display version numbers and paths to their
 locations.
   -r, --recursive         Copy source directory recursively.
   -v, --verbose           Be noisy about what is happening.
       --caps-only         When copying to local files, write out filecaps
                           instead of actual data (only useful for
 debugging and
                           tree-comparison purposes).
   -d, --node-directory=   Specify which Tahoe node directory should be
 used. The
                           directory should either contain a full Tahoe
 node, or
                           a file named node.url that points to some other
 Tahoe
                           node. It should also contain a file named
                           'private/aliases' which contains the mapping
 from
                           alias name to root dirnode URI. [default:
                           '/home/zooko/.tahoe']
   -u, --node-url=         Specify the URL of the Tahoe gateway node, such
 as
                           'http://127.0.0.1:3456'. This overrides the URL
 found
                           in the --node-directory .
       --dir-cap=          Specify which dirnode URI should be used as the
                           'tahoe' alias.
       --help              Display this help and exit.

 Use 'tahoe cp' to copy files between a local filesystem and a Tahoe grid.
 Any
 FROM/TO arguments that begin with an alias indicate Tahoe-side files or
 non-file
 arguments. Directories will be copied recursively. New Tahoe-side
 directories
 will be created when necessary. Assuming that you have previously set up
 an
 alias 'home' with 'tahoe create-alias home', here are some examples:

 tahoe cp ~/foo.txt home: # creates tahoe-side home:foo.txt

 tahoe cp ~/foo.txt /tmp/bar.txt home: # copies two files to home:

 tahoe cp ~/Pictures home:stuff/my-pictures # copies directory recursively

 You can also use a dircap as either FROM or TO target:

 tahoe cp
 URI:DIR2-RO:ixqhc4kdbjxc7o65xjnveoewym:5x6lwoxghrd5rxhwunzavft2qygfkt27oj3fbxlq4c6p45z5uneq/blog.html
 ./ # copy Zooko's wiki page to a local file

 This command still has some limitations: symlinks and special files
 (device
 nodes, named pipes) are not handled very well. Arguments should probably
 not
 have trailing slashes. 'tahoe cp' does not behave as much like /bin/cp as
 you
 would wish, especially with respect to trailing slashes.

 /usr/bin/tahoe:  option --node-dir not a unique prefix

 }}}

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2082>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


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