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

PICARD-3013: Fix case-only renaming on case-insensitive filesystems #2561

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

phw
Copy link
Member

@phw phw commented Dec 27, 2024

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Fix case-only renaming on case-insensitive filesystems. This broke when fixing PICARD-2076 (allow long filenames) in commit 5037ce9#diff-8e9e6145ecc7e912b2d643f5064e6f196d3668bd010ffa6037775232c2aba236L520 .

Solution

Make calling os.path.realpath optional in normpath. It is not needed here if we assume the new filename does not exist and we want to move a file to a new name.

Generally keep calling of os.path.realpath enabled as standard, as in many cases we call normpath on existing paths

@phw phw requested a review from zas December 27, 2024 14:51
@phw phw force-pushed the PICARD-3013-fix-case-inensitive-rename branch from e5a6518 to b4534aa Compare December 27, 2024 15:08
@phw phw force-pushed the PICARD-3013-fix-case-inensitive-rename branch from b4534aa to 9c28b56 Compare December 27, 2024 15:12
@phw phw merged commit 6565815 into metabrainz:master Dec 28, 2024
43 checks passed
@phw phw deleted the PICARD-3013-fix-case-inensitive-rename branch January 3, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants