public static File ensureLogDirectoryExists(){
  if (mLogDirectory == null) {
    return null;
  }
  if (!mLogDirectory.exists()) {
    mLogDirectory.mkdirs();
  }
  return mLogDirectory;
}

public static File ensureLogDirectoryExists ( ) { if ( mLogDirectory == null ) { return null ; } if ( ! mLogDirectory . exists ( ) ) { mLogDirectory . mkdirs ( ) ; } return mLogDirectory ; }
check if the log directory exists . create it if it s not created
