As per the BIS guide it says “filenamepattern String Optional. Pattern that specifies the names of the files to include in the list (for example, *.txt).” I am not quite sure if the input supports regex.
yes i resolve it what kind of pattern you have?
for me i didn’t use filenamepattern, bellow what i did:
pub.client.sftp:login
pub.client.sftp:ls
loop over ‘/dirList’
–/dirList/FileName:BRANCH
----%/dirList/fileName%=/[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt/:SEQUENCE
-------pub.client.sftp:get(and i put this on remotefile : /WMESBREC/ServeurDist/%dirList/fileName%)