files-community / files-community/Files

Bug: Items are deleted in cut folder after canceling an operation with a merge conflict

Open
#15,754 11 comments 0 reactions 0 assignees View on GitHub
needs - reproducing
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 7m
Merged PRs (30d)
62

Description

### Description

如题,由于文件夹和目标文件夹中有重名,弹窗提示是否覆盖,点击取消后,Files删除了我原来的文件夹和其中的所有文件。

### Steps To Reproduce

1. 在桌面上新建文件夹Folder1,在里面放一些文件
2. 在D盘的SampleFolder中新建一个文件夹,命名为Folder1
3. 剪切桌面上的Folder1并用Files粘贴到D:\SampleFolder
4. Files提示文件名冲突,点击取消
5. 桌面上的Folder1和里面的文件被直接删除,D盘里也没有,用户数据遭到损失

### Requirements

修复此导致用户数据丢失的bug

### Files Version

3.5.4.0

### Windows Version

23h2

### Log File

-

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing the cut-and-paste merge-conflict flow on Windows and trace the cancel path in the file operation handling. Done means canceling the conflict preserves the original folder and its contents, with no incomplete destination copy.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.