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

Get a directory listing or use wildcard with existsFile #22

Open
vincentml opened this issue Oct 16, 2020 · 0 comments
Open

Get a directory listing or use wildcard with existsFile #22

vincentml opened this issue Oct 16, 2020 · 0 comments

Comments

@vincentml
Copy link

feature request

I need to test if a file has been created without knowing the exact name of the file. The existsFile() function does almost what I need but only works using an exact path and file name.

The scenario is that the application is placing a file in a particular SFTP folder and adding a timestamp to the file name. The path to the folder is known and part of the file name is known, but the timestamp included in the file name is not exactly predictable.

Could it be possible to use a glob pattern wildcard? For example existsFile("/path/*_file.txt")

Alternatively, could it be possible to retrieve a directory listing? For example: listDirectory("/path"). I could then check the result to see if the file is present.

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

No branches or pull requests

1 participant