darkoperator / darkoperator/Posh-SSH

Get-SFTPChildItem No Longer Listing Files in 3.2.3

Open
#592 16 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

I think this is a similar issue to #590. Calling Get-SFTPChildItem without a Path parameter is not returning any results anymore. I'm pretty sure this was working in 3.2.0 but no longer works in 3.2.3. I've only tested this on Windows:

Get-SFTPChildItem -SessionId $session.SessionId -File -Verbose

This above command results no results, but if I add a Path parameter it returns the expected results:

Get-SFTPChildItem -SessionId $session.SessionId -File -Verbose -Path *

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the issue on Windows with Get-SFTPChildItem -SessionId $session.SessionId -File -Verbose, then compare it with the working -Path * form and versions 3.2.0 and 3.2.3. Done means omitting Path lists the expected files, matching the explicit wildcard behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
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.