sshnet / sshnet/SSH.NET

file from folder from sftp side?

Open
#317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

Is there a way to differentiate a file from folder from sftp side?

I can't rely on the file extension since files I am sftp downloading don't contain extension.

I can always try catch if it fails to download if it happens to be a folder but that's not what I am looking for

thanks

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

The issue names no source file, test, or entry point. Start by checking the SFTP API documentation and source for how remote directory entries are represented, then determine whether the existing API exposes a file-versus-folder distinction. Done should include a clearly specified way to identify remote folders without downloading them, with coverage for the reported extensionless-file case.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.