所以在我的 scala 类中,我不得不使用 Jsch(JAVA) 库来做 SFTP 工作。但由于某种原因,它无法导入:
import com.jcraft.jsch.ChannelSftp.LsEntry
Run Code Online (Sandbox Code Playgroud)
知道为什么会这样吗?LsEntry 是 ChannelSftp 的嵌套类。
http://epaul.github.io/jsch-documentation/simple.javadoc/com/jcraft/jsch/ChannelSftp.html
package services.impl
import java.nio.file.Path
import com.jcraft.jsch.ChannelSftp
import com.jcraft.jsch.ChannelSftp.LsEntry
import services.InputService
class InputServiceImpl extends InputService[List[ChannelSftp.LsEntry]] {
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1332 次 |
最近记录: |