imsnif / imsnif/diskonaut

Bug: when deleting a folder that contains a file we can't delete, we get an uninformative message

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Rust
Stars
3.1k
Forks
96
PR merge metrics
No merged PRs in 30d

Description

To reproduce:
1. Create folder `/path_to_my/folder`
2. Create nested_folder `/path_to_my/folder/nested_folder`
3. Create a file inside nested_folder `/path_to_my_folder/folder/nested_folder/file.txt`
4. Change the permissions of `nested_folder` to be read only.
5. Start diskonaut and give it `/path_to_my` as its path (`diskonaut /path_to_my`).
6. Try to delete folder.
7. See that we get an uninformative error message and are unsure what happened.

In this scenario, the message should read something like "Permission denied deleting /path_to_my/folder/nested_folder".

Contributor guide

Open the contributing guide

Research direction

Start at the diskonaut CLI entry point and reproduce the deletion failure using the numbered steps, including a read-only nested_folder. Trace the folder-deletion error handling; done means the failure reports permission denial and identifies /path_to_my/folder/nested_folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.