code: public void mkdir(String dir) throws SftpStatusException, SshException {
  		String actual = resolveRemotePath(dir);
  
  		if (Log.isDebugEnabled()) {
  			Log.debug(this, "Creating dir " + dir);
  		}
  
  		try {
  			sftp.getAttributes(actual);
  		} catch (SftpStatusException ex) {
  			// only create the directory if catch an exception with code file
  			// not found
  			SftpFileAttributes newattrs = new SftpFileAttributes(sftp,
  					SftpFileAttributes.SSH_FILEXFER_TYPE_DIRECTORY);
  			newattrs.setPermissions(new UnsignedInteger32(0777 ^ umask));
  			sftp.makeDirectory(actual, newattrs);
  			return;
  		}
  
  		if (Log.isDebugEnabled()) {
  			Log.debug(this, "A file/folder with name " + dir
  					+ " already exists!");
  		}
  
  		throw new SftpStatusException(SftpStatusException.SSH_FX_FAILURE,
  				"File already exists named " + dir);
  
  	}
docs: <p>
  Creates a new directory on the remote server. This method will throw an
  exception if the directory already exists. To create directories and
  disregard any errors use the <code>mkdirs</code> method.
  </p>
  
  @param dir
  the name of the new directory
  
  @throws SftpStatusException
  @throws SshException