Hi Rick,
I would like to migrate one of our application from wodSFTP (ocx) to wwSftpClient. In some situations I need the information of RealPath like that: https://www.weonlydo.com/SFTP/Help/wodSFTP-RealPath-method.html
Some remote servers have start-directory like /users/DE44883597 If my file locates on /users/DE44883597/testfile.csv I must set the fullpath for wwSftpClient to ListFiles() or DownloadFile(). Can I get the fullpath with wwSftpClient on the fly?
Why I need that? In the past when we used wodSFTP the client only needs to set the filename like "testfile.csv". We used the RealPath(".") function of wodSFTP to detect the fullpath and added the fullpath dynamically. Now when we move to wwSftpClient our clients must change all here configurations for filepath when they working with SFTP. This is big work and support for us.
Hope you can help.

You can get the current FTP server path with:
? loFtp.oBridge.GetProperty(loFtp.oFtpClient.SftpClient,"WorkingDirectory")
Make sure you're connected first though.
I've added a method to the wwSFtpClient class:
************************************************************************
* GetDirectory
****************************************
*** Function: Changes the active directory on the FTP Serve3r
*** Assume:
*** Pass: Remote path
*** Return: Folder or Empty string if not connection
************************************************************************
FUNCTION GetDirectory()
LOCAL lcResult
lcResult = ""
TRY
lcResult = THIS.oBridge.GetProperty(this.oFtpClient.SftpClient,"WorkingDirectory")
CATCH
ENDTRY
RETURN lcResult
ENDFUNC
* GetDirectory
Documentation:
+++ Rick ---