id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,launchpad_bug 761,"""tahoe cp $DIRCAP/$PATH $LOCAL"" raises AttributeError",zooko,warner,"{{{tahoe cp --help}}} suggests that I try: {{{ You can also use a dircap as either FROM or TO target: tahoe cp URI:DIR2-RO:j74uhg25nwdpjpacl6rkat2yhm:kav7ijeft5h7r7rxdp5bgtlt3viv32yabqajkrdykozia5544jqa/wiki.html ./ # copy Zooko's wiki page to a local file }}} But when I try it, I get an exception: {{{ $ time ~/playground/allmydata/tahoe/trunk-hashedformat/bin/tahoe cp -r --node-url http://testgrid.allmydata.org:3567 URI:DIR2-RO:j74uhg25nwdpjpacl6rkat2yhm:kav7ijeft5h7r7rxdp5bgtlt3viv32yabqajkrdykozia5544jqa/wiki.html foo Traceback (most recent call last): File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/support/bin/tahoe"", line 8, in load_entry_point('allmydata-tahoe==1.4.1-r3989', 'console_scripts', 'tahoe')() File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/runner.py"", line 91, in run rc = runner(sys.argv[1:]) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/runner.py"", line 78, in runner rc = cli.dispatch[command](so) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/cli.py"", line 429, in cp rc = tahoe_cp.copy(options) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 759, in copy return Copier().do_copy(options) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 444, in do_copy self.try_copy() File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 501, in try_copy return self.copy_to_directory(sources, target) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 661, in copy_to_directory self.copy_files_to_target(self.targetmap[target], target) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 692, in copy_files_to_target self.copy_file_into(source, name, target) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 737, in copy_file_into target.put_file(name, f) File ""/data2/homezooko/playground/allmydata/tahoe/trunk-hashedformat/src/allmydata/scripts/tahoe_cp.py"", line 163, in put_file pathname = os.path.join(self.pathname, name) File ""/usr/lib/python2.5/posixpath.py"", line 60, in join if b.startswith('/'): AttributeError: 'NoneType' object has no attribute 'startswith' }}}",defect,closed,major,1.6.0,code-frontend-cli,1.4.1,fixed,news-done,,