public boolean isFolder(){
  return mMimeType != null && mMimeType.equals("DIR");
}

public boolean isFolder ( ) { return mMimeType != null && mMimeType . equals ( "DIR" ) ; }
use this to find out if this file is a folder .
