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.
JschSftpを使用して親ディレクトリに移動する方法を理解しようとしています。
現在のパスが文字列に格納されており、channelSftp.cd(String);と推測しています。私が使うべきものです。しかし、現在のパスでサブストリングを使用すると、私は間違っていると感じます。これを行うためのより良い方法はありますか?
シェルと同じ:
channelSftp.cd("..");