更新时间:2023-09-20 11:36:04
(这是如果您使用的是库的SFTP部分,这是我没有考虑的假设.)
我认为它的ls(String path)
将接受文件名;我目前无法检查.
I thought its ls(String path)
would accept filenames; I can't check at the moment.
如果没有,则无需手动进行迭代;您可以使用选择器变体:
If it doesn't, you don't need to iterate manually; you can use the selector variant:
ls(String path, ChannelSftp.LsEntrySelector selector)