title: JSch ChannelSftp.ls - pass match patterns in java
body: <p>I have multiple files at an sftp location like</p>
  
  <pre><code>xyz_20140101.csv.gz
  xyz_2014_01_01.csv.gz
  xyz_20140202.csv.gz
  xyz_2014_02_02.csv.gz
  </code></pre>
  
  <p>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 .</p>
  
  <p>I am passing </p>
  
  <pre><code>pattern = xyz_*csv.gz , but it gives me all the files .
  
  ChannelSftp.ls(pattern);
  </code></pre>
  
  <p>What should be my pattern to pass in ls command ?</p>