Francisco Martín Brugué added the comment:

First I've reviewed #msg205585 again (no patch applied). Notice that Traceback 
was not accurate:

test_A:

>>> os.makedirs('foo')
>>> os.makedirs('bar/foo')
>>> shutil.move('foo/', 'bar/')

Traceback (most recent call last):
  File "<pyshell#15>", line 1, in <module>
    shutil.move('foo/', 'bar/')
  File "D:\programs\Python27\lib\shutil.py", line 291, in move
    raise Error, "Destination path '%s' already exists" % real_dst
Error: Destination path 'bar/' already exists

test_B:
>>> os.makedirs('foo')
>>> os.makedirs('bar/foo')
>>> shutil.move('foo', 'bar/')

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    shutil.move('foo', 'bar/')
  File "D:\programs\Python27\lib\shutil.py", line 291, in move
    raise Error, "Destination path '%s' already exists" % real_dst
Error: Destination path 'bar/foo' already exists


test_C:
>>> os.makedirs('foo')
>>> os.makedirs('bar/foo')
>>> shutil.move('foo\\', 'bar/')

Traceback (most recent call last):
  File "<pyshell#12>", line 1, in <module>
    shutil.move('foo\\', 'bar/')
  File "D:\programs\Python27\lib\shutil.py", line 291, in move
    raise Error, "Destination path '%s' already exists" % real_dst
Error: Destination path 'bar/foo' already exists

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to