This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author francismb
Recipients francismb, serhiy.storchaka
Date 2013-12-08.17:01:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386522074.73.0.0668545594688.issue19856@psf.upfronthosting.co.za>
In-reply-to
Content
Just feedback on windows7. I tried the tests inside IDLE and done 'Run Module' (F5) (deleting the directories between tests):

test_A:

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

test_B:

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

and finally test_C:

import os, shutil
os.makedirs('foo')
os.makedirs('bar/boo')
shutil.move('foo\\', 'bar/')


... and got the same traceback:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 

Traceback (most recent call last):
  File "D:\temp\test.py", line 4, 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
>>>
History
Date User Action Args
2013-12-08 17:01:14francismbsetrecipients: + francismb, serhiy.storchaka
2013-12-08 17:01:14francismbsetmessageid: <1386522074.73.0.0668545594688.issue19856@psf.upfronthosting.co.za>
2013-12-08 17:01:14francismblinkissue19856 messages
2013-12-08 17:01:14francismbcreate