Repository navigation
Path questions for -PATH parameter #585
Unanswered
VeridianVoid
asked this question in
Q&A
Replies: 4 comments 4 replies
|
seems the problem is here for files under v5.1 I believe both should be changed to |
0 replies
|
Gonna see when I can setup a windows server with OpenSSH to test. I also found this on the library side sshnet/SSH.NET#171
|
0 replies
|
It does not work only on v5.1, v7 have no problems |
4 replies
|
should be fixed now in 3.2.1, just pushed it to the gallery |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
No logical version of Path works within windows to windows Posh-SSH. But same paths work in OS-level SCP. Full example :
Via scp command, this works :
scp the_user@the_host:"/C:/TEST_DIR/SOURCE_DIR/TEST_FILE.TXT" "C:\TEST_DIR\TARGET_DIR\newfile.txt"
Setup for POSH :
Works great so far, but here is where it fails :
Get-SFTPItem -SFTPSession $FTP_Session -Path "/C:/TEST_DIR/SOURCE_DIR/TEST_FILE.TXT" -Destination "C:\TEST_DIR\TARGET_DIR"
Gives : "The given path's format is not supported."
The only format that does work is (this is the only way the command seems to work):
Get-SFTPItem -SFTPSession $FTP_Session -Path "../../TEST_DIR/SOURCE_DIR/TEST_FILE.TXT" -Destination "C:\TEST_DIR\TARGET_DIR"
But as you can see, there's no way to specify the drive.
This is a trivial example, is there documentation for pathing with posh-ssh? Am I missing something? Is this a windows-ish bug?
All reactions