-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(files): Only add copy suffix before file extension for files (not folders) #44417
Conversation
/backport to stable28 |
…re file extension Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
c061de9
to
387c2ff
Compare
/compile amend |
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
387c2ff
to
929c3df
Compare
* @return Either the initial name, if unique, or the name with the suffix so that the name is unique | ||
*/ | ||
export const getUniqueName = (name: string, otherNames: string[], suffix = (n: number) => `(${n})`): string => { | ||
export const getUniqueName = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: move to @nextcloud/vue
🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nextcloud/files
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, brain died while writing my message 🙈
(copy)
misplaced with some filenames #43843Summary
For files keep the behavior (
file.name
->file (copy).name
) but for folders ignore the extension (folder.name
->folder.name (copy)
).vokoscreenNG-2024-03-22_18-33-07.mp4
Checklist