pub.client.ftp:ls filenamepattern syntax

Hi community,

please i need to list files using a pattern like that :[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt

but it dosn’t work when i make it in the filenamepattern=[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt

when i write *_taux.txt it works,
what is the problem with my pattern??

Regards,
thanks,

Can you list a few sample file names with above pattern along with OS details.

Thanks,

Hi thank you for yr reply,
My file name is : 2016-01-12_taux.txt

Remote os: windows unfortunatly without sftp
Locale server : Aix where IS exist,
Regards,

hi,

no one have an idea about what i need :cry: , nobody ever use the regular expression of Date to liste files???

Regards,
Thanks,

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.

Did you have a look at the BIS?

Hello,

have you solved this problem, I have the same

Thank you !

hi lalita,

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%)

tell me if that resolve yr issue

Regards,