提交 eac1f7dd 编写于 作者: B Benjamin Pasero

Explorer: dropping file with same name overwrites without confirmation (fixes #33848)

上级 d2812f3c
......@@ -827,7 +827,7 @@ export class ImportFileAction extends BaseFileAction {
let overwrite = true;
if (input.paths.some(path => {
return !!targetNames[isLinux ? paths.extname(path) : paths.extname(path).toLowerCase()];
return !!targetNames[isLinux ? paths.basename(path) : paths.basename(path).toLowerCase()];
})) {
const confirm: IConfirmation = {
message: nls.localize('confirmOverwrite', "A file or folder with the same name already exists in the destination folder. Do you want to replace it?"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册