private def upload()

in src/main/scala/org/intellij/scala/bundle/MacHost.scala [101:109]


  private def upload(source: LocalSourceFile, destination: String, perms: Int = -1)(implicit client: SSHClient): Unit = {
    val sftp = client.newSFTPClient()
    println(s"scp $source $destination")
    sftp.put(source, destination)
    if (perms != -1) {
      sftp.chmod(destination, Integer.parseInt(perms.toString, 8))
    }
    sftp.close()
  }