darkoperator / darkoperator/Posh-SSH
(Get-SCPItem) Problem with the file name
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?

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