title: check if some folders exists java Android
body: <p>I need check at least 4 directories if they exists and get the correct path in a variable for finnish my code. </p>
  
  <p>But I don't know the correct way to do that.</p>
  
  <p>Thanks for your help.</p>
  
  <p>Here my code for check a single directory</p>
  
  <pre><code>final String uploadFilePath = "/mnt/sdcard/folder1/";
  
     File f = new File(uploadFilePath);
  
      if(f.exists() &amp;&amp; f.isDirectory()){
          Log.v("FILES", "EXIST");
      }else{
          Log.v("FILES", "DONT EXIST");
      }
  </code></pre>