files-community / files-community/Files

Bug: When performing a deletion on a write-protected SD card, there is a long wait before reporting an error with no error reason

Open
#15,551 5 comments 0 reactions 0 assignees View on GitHub
area - file operations
Dominant language
C#
Stars
45.4k
Forks
2.9k
Avg merge
19h 7m
Merged PRs (30d)
62

Description

### Description

When attempting to delete files in a write-protected partition, **Files** seems to try deleting each individual file before ultimately reporting an error. This behavior can be misleading.

### Steps To Reproduce

1. Enable write protection (e.g., using the physical switch on an SD card).
2. Use **Files** to permanently delete a folder on this partition.
3. Observe that the progress bar moves slowly as if it's genuinely deleting, but eventually, it displays a deletion failure message.

### Requirements

- When writing to or deleting content in a write-protected partition, an immediate error should be reported instead of attempting to delete each file.
- When file operations fail, additional error information should be provided.

### Files Version

3.4.5.0

### Windows Version

Windows 11 23H2

### Log File

-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.