darkoperator / darkoperator/Posh-SSH

(Get-SCPItem) Problem with the file name

Open
#512 4 comments 0 reactions 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

Hello.
Sorry for my bad english, not my first language.
I have a problem using the Get-SCPItem command. When I try to download a file with spaces in the name, from remote to local the file is downloaded, but the file name does not appear correctly. In the image below you can see how it automatically adds a single quote to the end of the file.
How can i fix this?

WindowsTerminal_kTKtwNz6La

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

Start by reproducing Get-SCPItem with a remote filename containing spaces and inspect the command's implementation in the Posh-SSH repository. Confirm the behavior on Windows and trace how the remote name becomes the local name; done means the downloaded file preserves the remote filename without the extra trailing quote.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.