Allow recursive directory removal
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 993
- Avg merge
- 9d 21h
- Merged PRs (30d)
- 1
Description
SftpClient.DeleteDirectory throws an exception (Permission denied) when directory contains files.
Suggestion: add support for recursive directory removal together with all the files in it, aka rm -rf dir
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with SftpClient.DeleteDirectory and trace how it handles a directory containing files. Check the existing SFTP directory and file deletion behavior before deciding where recursive handling belongs. Done means a directory containing files can be removed recursively, matching the requested rm -rf behavior without the current Permission denied exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100