You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: