title: How to get info of an FTPFile
body: <p>I am using ApacheCommons to connect to a server and get information of a specific file. I am looking for a method like <code>FTPFile file = ftpclient.getFile(path);</code> or something like this, so I can give it the path of the file and then be able to get info about that file. By info I mean <code>file.getName()</code> or <code>file.lendth()</code>.
  The only way I found is using listing methods such as <code>listFiles(path)</code> but it requires using <code>for-loop</code> and so on. But is there any better way or more straight forward?</p>