Skip to content

fix: keep folder and extensionless names intact when renaming with hidden extensions - #3687

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/rename-ext-hidden
Oct 13, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/rename-ext-hidden

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Rename with hidden extensions: the extension is only appended for files that actually have one, so folders and extensionless files no longer get a trailing dot or a doubled suffix (e.g. dotted.folder.folder).

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest)
  • test case 1: renaming a folder, a dotted folder and an extensionless file with hidden extensions sends the typed name unchanged
  • test case 2: renaming a file with an extension and hidden extensions still appends the extension

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit b324cc6 into main Oct 13, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/rename-ext-hidden branch October 13, 2026 08:54
@openclouders openclouders mentioned this pull request Oct 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With "Show file extensions" off, renaming folders and files without an extension writes wrong names

2 participants