title: Check if directory exists on remote machine
body: <p>How to check if directory exists on remote machine?</p>
  
  <p>I want to create directory on remote machine. For that I need to check if the directory is present on remote machine. Is there any way in java to check this?</p>
  
  <p>I want something like this</p>
  
  <pre><code>File f = new File("http:/sac/svn/MockRepo/Mockrepo/branches/eQubeQa/Definitions/sac_cat/")
  if(!f.exists()){
      //create directory
  }
  </code></pre>
  
  <p>I know there is exist method in File class.
  It works with local file system.
  But for remote directory it always returns false.</p>
  
  <p>Please give me the sample code.</p>