We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would expect to be able to specify the filename for a single file upload. But it appears I need to do this with 2 commands instead.
Set-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination CorrectName.ext
SomeFile.ext should be uploaded from my local machine and stored on the remote machine and named CorrectName.ext
SomeFile.ext
CorrectName.ext
Upload fails and error is returned that reads: CorrectName.ext does not exist.
CorrectName.ext does not exist.
Set-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination "./"
Move-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination CorrectName.ext
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would expect to be able to specify the filename for a single file upload. But it appears I need to do this with 2 commands instead.
Expected behavior
Set-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination CorrectName.ext
SomeFile.ext
should be uploaded from my local machine and stored on the remote machine and namedCorrectName.ext
Actual Behavior
Upload fails and error is returned that reads:
CorrectName.ext does not exist.
Work Around
Set-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination "./"
Move-SFTPItem -SFTPSession $session -Path SomeFile.ext -Destination CorrectName.ext
The text was updated successfully, but these errors were encountered: