Skip to content

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

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

With "Show file extensions" off, renaming folders and files without an extension writes wrong names. Cause: packages/web-app-files/src/composables/actions/files/useFileActionsRename.ts:131-133 (onConfirm) and :138-140 (checkName) always append .${extension}, also for folders (whose input shows the full name) and for files with an empty extension.

Reproduction Steps

  1. View options → turn off "Show file extensions".
  2. Rename folder plainfolder to plainfolder2, folder dotted.folder to dotted2.folder and file README to README2.

Expected Outcome

plainfolder2, dotted2.folder, README2 on the server.

Actual Outcome

The server gets plainfolder2. (trailing dot), dotted2.folder.folder and README2.. Files with an extension are fine.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions