private int createFolder(){
  if (mNewDirectoryName != null && mSelectedDir != null && mSelectedDir.canWrite()) {
    File newDir=new File(mSelectedDir,mNewDirectoryName);
    if (!newDir.exists()) {
      boolean result=newDir.mkdir();
      if (result) {
        changeDirectory(newDir);
        return R.string.create_folder_success;
      }
 else {
        return R.string.create_folder_error;
      }
    }
 else {
      return R.string.create_folder_error_already_exists;
    }
  }
 else   if (mSelectedDir != null && !mSelectedDir.canWrite()) {
    return R.string.create_folder_error_no_write_access;
  }
 else {
    return R.string.create_folder_error;
  }
}

private int createFolder ( ) { if ( mNewDirectoryName != null && mSelectedDir != null && mSelectedDir . canWrite ( ) ) { File newDir = new File ( mSelectedDir , mNewDirectoryName ) ; if ( ! newDir . exists ( ) ) { boolean result = newDir . mkdir ( ) ; if ( result ) { changeDirectory ( newDir ) ; return R . string . create_folder_success ; } else { return R . string . create_folder_error ; } } else { return R . string . create_folder_error_already_exists ; } } else if ( mSelectedDir != null && ! mSelectedDir . canWrite ( ) ) { return R . string . create_folder_error_no_write_access ; } else { return R . string . create_folder_error ; } }
creates a new folder in the current directory with the name create_directory_name .
