private static String formatProtocol()

in deploy-runner-agent/src/main/java/jetbrains/buildServer/deployer/agent/ftp/FtpBuildProcessAdapter.java [73:83]


  private static String formatProtocol(String target) {
    if (target == null)
      throw new IllegalArgumentException("Target must not be null");
    // strip protocols
    if (target.toLowerCase().startsWith(FTP_PROTOCOL))
      target = target.substring(FTP_PROTOCOL.length());
    if (startsWithFtpsProtocol(target)) {
      target = target.substring(FTPS_PROTOCOL.length());
    }
    return FTP_PROTOCOL + target;
  }