我正在为 Ftp 客户端使用https://github.com/akka/alpakka/tree/master/ftp/src这个库。我将文件的 url 作为路径。但正如我从代码实现中看到的,它们只支持函数中的 java.nio.file.Path。
val ftpSettings = FtpSettings(host, port, NonAnonFtpCredentials(userName, pass), passiveMode = true)
Ftp.fromPath("Path object", ftpSettings)
但是我没有本地文件。我只有文件的网址。是否有可能通过 url 获取文件?