[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2399: cp -r tries to mkdir the directory more than once

Tahoe-LAFS trac at tahoe-lafs.org
Mon Apr 6 03:37:25 UTC 2015


#2399: cp -r tries to mkdir the directory more than once
-------------------------------+---------------------------
 Reporter:  ambimorph          |          Owner:
     Type:  defect             |         Status:  new
 Priority:  normal             |      Milestone:  undecided
Component:  code-frontend-cli  |        Version:  1.10.0
 Keywords:                     |  Launchpad Bug:
-------------------------------+---------------------------
 Target directory tmp did not exist before running the following:
 {{{
 $ tahoe cp -r lae:admin/Latest/ tmp
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/runner.py", line 156, in run
     rc = runner(sys.argv[1:], install_node_control=install_node_control)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/runner.py", line 141, in runner
     rc = cli.dispatch[command](so)
   File "/usr/local/lib/python2.7/dist-packages/allmydata/scripts/cli.py",
 line 541, in cp
     rc = tahoe_cp.copy(options)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 831, in copy
     return Copier().do_copy(options)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 479, in do_copy
     status = self.try_copy()
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 565, in try_copy
     return self.copy_things_to_directory(sources, target)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 719, in
 copy_things_to_directory
     targetmap = self.build_targetmap(sources, target)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 762, in build_targetmap
     new_target = target.get_child_target(name)
   File "/usr/local/lib/python2.7/dist-
 packages/allmydata/scripts/tahoe_cp.py", line 159, in get_child_target
     os.makedirs(pathname)
   File "/usr/lib/python2.7/os.py", line 157, in makedirs
     mkdir(name, mode)
 OSError: [Errno 17] File exists: '/home/amber/tmp/'
 }}}

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


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