code: static public void recursiveCreateDirectory(FTPClient ftpClient, String path) throws IOException {
  
  		logger.info("Create Directory: {}", path);
  		int createDirectoryStatus = ftpClient.mkd(path); // makeDirectory...
  		logger.debug("Create Directory Status: {}", createDirectoryStatus);
  		
  		if (createDirectoryStatus == FTP_FILE_NOT_FOUND) {
  			int sepIdx = path.lastIndexOf('/');
  			if (sepIdx > -1) {
  				String parentPath = path.substring(0, sepIdx);
  				recursiveCreateDirectory(ftpClient, parentPath);
  
  				logger.debug("2'nd CreateD irectory: {}", path);
  				createDirectoryStatus = ftpClient.mkd(path); // makeDirectory...
  				logger.debug("2'nd Create Directory Status: {}", createDirectoryStatus);
  			}
  		}
  	}
docs: Create a directory and all missing parent-directories.
  
  @param ftpClient
  @param path
  @throws IOException