Skip to content
New issue

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

Unable to use 'Put File' with wildcard and scp=ALL #376

Closed
triblex opened this issue Feb 2, 2021 · 2 comments
Closed

Unable to use 'Put File' with wildcard and scp=ALL #376

triblex opened this issue Feb 2, 2021 · 2 comments

Comments

@triblex
Copy link

triblex commented Feb 2, 2021

I am attempting to upload several files with scp via SSHLibrary. It works just fine with a single file, but when using wildcards for multiple files, it returns [Errno 2] No such file or directory.

This does NOT work:
SSHLibrary.Put File ${CURDIR}/test/*.json destination=/tmp/ scp=ALL
And returns:
[Errno 2] No such file or directory: '/home/triblex/Projects/RobotFramework/upload/test/*.json'

But this works:
SSHLibrary.Put File ${CURDIR}/test/test.json destination=/tmp/ scp=ALL

@mihaiparvu
Copy link
Contributor

I reproduced it myself, this is a bug with SCP transfer that doesn't take into account pattern matching. Doesn't look too difficult to fix, so most probably will be resolved in the next release.

@mihaiparvu
Copy link
Contributor

Closed by #378

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

No branches or pull requests

2 participants