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.

classification
Title: shutil.move doesn't work when only case changes
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, ggambett, orsenthil
Priority: normal Keywords:

Created on 2007-06-16 18:25 by ggambett, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg32345 - (view) Author: Gabriel Gambetta (ggambett) Date: 2007-06-16 18:25
shutil.move() appears to fail silently when the source and destination filenames only differ in case (ie "SomeFile" and "Somefile"). This is with python 2.4.3-18.fc6, on a case-sensitive filesystem (ext3), so this rename *is* meaningful.
msg32346 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2007-06-17 05:08
I guess, this should be very much python 2.4.3-18.fc6 specific. While I have python 2.3.4, python 2.5, python 2.6a0. I am unable to reproduce this defect. Having said that, help(shutil.move) mentions about the various issues of moving the implementation glosses over.
Please provide some more details or anyone with python 2.4.3-18 should be able to verify it.
msg32347 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-06-19 12:40
This is quite strange.

Gabriel, could you try to use another Python version provided by Fedora, or
even a self-compiled one?
msg32348 - (view) Author: Gabriel Gambetta (ggambett) Date: 2007-06-26 03:51
Sorry, my bad. This happened in a FAT volume mounted somewhere in an ext3 tree so the rename wasn't meaningful within the volume. Still doing shutil.move(source, "__temp__") and shutil.move("__temp__", dest) did achieve the result I wanted.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45100
2007-06-16 18:25:23ggambettcreate