Failed to import ChannelSftp.LsEntry from Jsch when I use it in Scala code, why?

So, in the scala class, I had to use the Jsch library (JAVA) to operate SFTP. But for some reason, it cannot import:

import com.jcraft.jsch.ChannelSftp.LsEntry 

Any idea why this would be? LsEntry is a nested ChannelSftp class.

http://epaul.imtqy.com/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]] { } 
+4
source share
1 answer

Figured it out.

In scala, to refer to a nested class, you use the following syntax:

 ChannelSftp#LsEntry 
+3
source

All Articles