Hi, 
In a remote ftp server, there are timestamped copies of  
foo-{yyyymmdd-hhmmss}.txt. 
 I would like to stfp download the latest copy.   If I know the file name of 
the latest copy is foo-20150715-130120.txt, I can download 
foo-20150715-130120.txt using :   template.receiveBody( 
"sftp://[email protected]/valid?preferredAuthentications=publickey&privateKeyFile=/home/foo/myPubKey&fileName=foo-20150715-130120.txt";);
  Is there a "Camel" way to download the latest copy of 
foo-{yyyymmdd-hhmmss}.txt ? (I do not want to download all copies of 
foo-{yyyymmdd-hhmmss}.txt, as there might be hundreds of them.) 

  An alternative is to use something like Jsch to determine the latest copy of 
foo-{yyyymmdd-hhmmss}.txt.  Thanks in advance for any assistance !
  Shing  

Reply via email to