我的问题很简单:我在连接到 FTP 的简单应用程序中使用 Apache commons.net API,我可以使用 changeWorkingDirectory 方法更改工作目录。但是...我怎么知道我的当前目录而不更改它?
最佳答案
printWorkingDirectory()
返回当前工作目录的路径名。 Here's the reference .
关于Java Apache FTPClient : How to know my current directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4283836/