| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
pwd |
pwd() |
Never | Work in Progress |
Method to retrieve the current working directory on the FTP server. This function returns a string containing the current working directory.
string pwd ()
Example
jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); $ftp->chdir( 'testing' ); echo "Current Working Directory: " . $ftp->pwd();
might produce:
Result
Current Working Directory: /testing