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 changeWorkingDirectory method. but... how can i know my current directory whitout changing it?
FTPClient encapsulates all the functionality necessary to store and retrieve files from an FTP server. This class takes care of all low level details of interacting with an FTP server and provides a convenient higher level interface.
printWorkingDirectory()
Returns the pathname of the current working directory. Here's the reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With