Java Apache FTPClient: How to know my current directory
My question is simple: i'm using the Apache commons.net API in a simple app which connects to an FTP, i can change the working directory with the ch开发者_Go百科angeWorkingDirectory method. but... how can i know my current directory whitout changing it?
printWorkingDirectory()
Returns the pathname of the current working directory. Here's the reference.
精彩评论