protected boolean isDirectoryExist(String directory){
  String fullPath=debugDirectory + File.separator + directory;
  File f=new File(fullPath);
  return f.exists() && f.isDirectory();
}

protected boolean isDirectoryExist ( String directory ) { String fullPath = debugDirectory + File . separator + directory ; File f = new File ( fullPath ) ; return f . exists ( ) && f . isDirectory ( ) ; }
check if a directory exist
