Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何使用 Jsch Sftp 去父目录。
我将当前路径存储在一个字符串中,我猜是 channelSftp.cd(String); 是我应该使用的。但是在当前路径上使用子字符串我感觉不对。有一个更好的方法吗?
与外壳相同:
channelSftp.cd("..");