[issue10684] Folders get deleted when trying to change case with shutil.move (Windows)

nooB report at bugs.python.org
Sat Jan 22 22:30:12 CET 2011


nooB <nsharish.mit at gmail.com> added the comment:

Sorry, for the wrong info. The issues exists only for folder renaming in windows.
try this,

>> import os, shutil
>> os.mkdir('test')
>> shutil.move('test', 'TEST')

poof. The folder is gone.
Shouldn't the path case be checked for file operations?

----------
title: Shutil.move deletes file/folder in windows while renaming -> Folders get deleted when trying to change case with shutil.move (Windows)
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10684>
_______________________________________


More information about the Python-bugs-list mailing list