-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Paste file/folder to other folder that already contain file/folder with the same name #8778
Conversation
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.
Does the change fix #4794?
If so, we can link it so it will be closed on merge.
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.
Does the change fix #4794?
If so, we can link it so it will be closed on merge.
Hi @vince-fugnitto, |
Hi, |
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.
code LGTM and tested successfully.
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.
@i501378 can you please rebase the pull-request against master
so CI (github actions) can run?
…th the same name Signed-off-by: Lital Avigad <lital.avigad@sap.com>
@vince-fugnitto Done |
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.
The changes work very well, thank you @i501378 !
Signed-off-by: Lital Avigad lital.avigad@sap.com
What it does
When we want paste file/folder with to other folder that already contain file/folder with the same name, it change the copied file/folder name when we paste it and add to the end of the name
_copy_${index}
.This code similar to vscode behavior on this scenario.
How to test
Create folder a with
file.txt
.Create folder b with
file.txt
.Copy the
file.txt
from folder b and paste it in folder a.The new file will be added to folder a with name
file_copy.txt
.Copy again the
file.txt
from folder b and paste it in folder a.The new file will be added to folder a with name
file_copy_2.txt
.Review checklist
Reminder for reviewers