Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutil.move doesn't work when only case changes #45100

Closed
ggambett mannequin opened this issue Jun 16, 2007 · 4 comments
Closed

shutil.move doesn't work when only case changes #45100

ggambett mannequin opened this issue Jun 16, 2007 · 4 comments
Labels
stdlib Python modules in the Lib dir

Comments

@ggambett
Copy link
Mannequin

ggambett mannequin commented Jun 16, 2007

BPO 1738441
Nosy @birkenfeld, @orsenthil

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-06-26.03:51:20.000>
created_at = <Date 2007-06-16.18:25:23.000>
labels = ['library']
title = "shutil.move doesn't work when only case changes"
updated_at = <Date 2007-06-26.03:51:20.000>
user = 'https://bugs.python.org/ggambett'

bugs.python.org fields:

activity = <Date 2007-06-26.03:51:20.000>
actor = 'ggambett'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2007-06-16.18:25:23.000>
creator = 'ggambett'
dependencies = []
files = []
hgrepos = []
issue_num = 1738441
keywords = []
message_count = 4.0
messages = ['32345', '32346', '32347', '32348']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'orsenthil', 'ggambett']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1738441'
versions = ['Python 2.4']

@ggambett
Copy link
Mannequin Author

ggambett mannequin commented Jun 16, 2007

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.

@ggambett ggambett mannequin closed this as completed Jun 16, 2007
@ggambett ggambett mannequin added the stdlib Python modules in the Lib dir label Jun 16, 2007
@orsenthil
Copy link
Member

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.

@birkenfeld
Copy link
Member

This is quite strange.

Gabriel, could you try to use another Python version provided by Fedora, or
even a self-compiled one?

@ggambett
Copy link
Mannequin Author

ggambett mannequin commented Jun 26, 2007

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants