code: private static void mkDirs(ChannelSftp channelSftp, String path) {
  //		System.err.println("### CREATE SFTP-PATH: " + path);
  		int lastSepPos = path.lastIndexOf('/');
  		if (lastSepPos > 0) {
  			String parentPath = path.substring(0, lastSepPos);
  			mkDirs(channelSftp, parentPath);
  		}
  		try {
  			channelSftp.mkdir(path);
  		} catch(SftpException e) {
  //			System.err.println("### FAILD TO CREATE PATH FOR: " + path + ", ERROR: " + e.getMessage());			
  		}
  	}
docs: TODO: Optimize to only create not existing folders and skip trying to create already existing ones...
  
  @param channelSftp
  @param path