Skip to content

Copy-WinSCPItem fails with null path #157

Description

@krylon

Please fill in the following fields:

Issue Description

Copy-WinSCPItem fails when attempting to copy a file

Example

Copy-WinSCPItem -Path /tmp/test1.txt -Destination /tmp/test2.txt

Expected Output

A copy of /tmp/test1.txt is made and written to /tmp/test2.txt

Actual Output

Cannot bind argument to parameter 'Path' because it is null.

WinSCP-PowerShell Version

6.1.2.0

Environment

Windows 10
PowerShell 5.1
WinSCP session is SCP
Session option also includes SSHhoskeypolicy = 'AcceptNew'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions