sshnet / sshnet/SSH.NET

Allow recursive directory removal

Open
#61 3 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.