tomaswolf commented on issue #724: URL: https://github.com/apache/mina-sshd/issues/724#issuecomment-2791136106
> See java doc [link](https://epaul.github.io/jsch-documentation/javadoc/com/jcraft/jsch/ChannelSftp.html#rmdir-java.lang.String-) and source code [link](https://github.com/mwiede/jsch/blob/8fe6a64916a9648337c51a3a2eca0e079f87d096/src/main/java/com/jcraft/jsch/ChannelSftp.java#L2060). That's not a recursive delete; it's just globbing. So you can call rmdir("foo*") and it will remove both directories "foo1" and "foo2" (and also "foobar") if they're empty. (But not recursively, and it won't delete them if they're not empty.) For downloading use read() to get an InputStream, then do whatever you want with it, for instance using Files.copy() to write it to a local file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org