I have multiple files at an sftp location like
xyz_20140101.csv.gz
xyz_2014_01_01.csv.gz
xyz_20140202.csv.gz
xyz_2014_02_02.csv.gz
through my java program i want to get list of files only in format xyz_YYYYMMDD.csv.gz , what should be my match pattern to pass in ChannelSftp.ls command .
I am passing
pattern = xyz_*csv.gz , but it gives me all the files .
ChannelSftp.ls(pattern);
What should be my pattern to pass in ls command ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…