sshnet / sshnet/SSH.NET

Application Data is recursive

Open
#842 1 comment 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

I am running the SSH Client on my Windows box. I wrote an application that recursively reads the entire directory structure so I can calculate each folder size. By default the home directory is the current users user directory. When I scan the directory the library returns the application data over and over again. For example:

AppData/Local/Application Data/Application Data/Application Data/Application Data/Application Data/

I looked at the flags and the symbolic link flag is not set. Windows Explorer does not have this issue. The 'AppData/Local/Application Data' should be flagged as symbolic or another flag that shows this is just an alias and not a real directory in that way the recursion can check the flag and skip the alias folder.

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 or test. Start by tracing how SSH.NET represents Windows directory entries and symbolic-link metadata during recursive scans, then reproduce the AppData/Local/Application Data alias on Windows. Done means the alias is distinguishable from a real directory so callers can avoid recursing into it, with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.