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

File Should Exist not allowing GLOB #104

Closed
spooning opened this issue Aug 14, 2014 · 2 comments
Closed

File Should Exist not allowing GLOB #104

spooning opened this issue Aug 14, 2014 · 2 comments

Comments

@spooning
Copy link
Contributor

Originally submitted to Google Code by cxtenber... on 10 Mar 2014

When I try to test whether a remote file exists or not using 'File Should Exist' and pass in a GLOB pattern, it appears to take the asterisk as a literal asterisk.
Example:

File Should Exist /path/to/file/abc*

This returns "File '/path/to/file/abc*' does not exist."

SSHLibrary version 2.0.0
Robotframework JAR 2.8.1
CentOS 6.2

Please explain the bug you have encountered and most importantly, how to
reproduce it.

Please also include the following information:
- SSHLibrary version
- Used interpreter (Python/Jython) and its version
- Operating system

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by cxtenber... on 10 Mar 2014

Sorry meant to delete the boiler plate/template part. Robotframework JAR 2.8.1 uses Jython 2.5.3

@spooning
Copy link
Contributor Author

Originally submitted to Google Code by @jussimalinen on 12 Aug 2014

Yes, glob patterns dont work. I think this would be an enhancement. Unless someone from inside Nokia requests this, or someone provides a patch, I dont think this will happen in near future.

You can work around this by creating your own keyword that uses the list files, which does support patterns.

@mihaiparvu mihaiparvu mentioned this issue Nov 5, 2021
@mihaiparvu mihaiparvu added this to the SSHLibrary 3.8.0 milestone Nov 5, 2021
@mihaiparvu mihaiparvu added the rc 1 label Nov 5, 2021
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