title: Difference between exists() and isDirectory() in android file class
body: <p>I would like to check whether a folder in internal SD card is exist or not.
  I have study android developer site.</p>
  
  <blockquote>
    <p>public boolean exists ()</p>
    
    <p>Added in API level 1
    Returns a boolean indicating whether this file can be found on the underlying file system.</p>
    
    <p>public boolean isDirectory ()</p>
    
    <p>Added in API level 1
    Indicates if this file represents a directory on the underlying file system.</p>
  </blockquote>
  
  <p>It seems both of them can perform similar function.
  What is the difference between them?
  Which one of them will be better in my situation?</p>