List Files of Remote Directory
<p>I have to dynamically select a file from a remote location based on the regular expression. </p>

<p>I used</p>

<pre><code>FileUtils.listFiles(fileDirectory ,new RegexFileFilter("(" A.*")"),DirectoryFileFilter.DIRECTORY)
</code></pre>

<p>to list the files , this fails as it says that the parameter directory is not a directory. </p>

<p>I understand that the it is looking on the local system for the directory , Can anybody tell me as to how can I connect to the remote machine and list the files at that location</p>

<p>If it is a complex task , can anybody please suggest a simple way to search for a file present on the remote location using regex. </p>

<p>Thanks 
Vivek</p>
