title: Apache Commons FTPClient, check if remote directory exist and get permissions (linux - unix)
body: <p>Is it possible with FTPClient (Apache commons-net) to check if a remote directory exists?</p>
  
  <p>I want to do something like this: </p>
  
  <pre><code>ftp.isDirectory(String path) //returns true, false
  </code></pre>
  
  <p>And then get permissions (chmod) of directory:</p>
  
  <pre><code>ftp.getPermisions(String path) //returns -rwxr-xr-x 
  </code></pre>