User.CurrentPath (wodFTPServer)
How do I find the current user path?
How do I find the current user path?
by wodDrazen
, (7369 days ago) @ Chris
Hi Chris,
I have to ask you, what Protocol are you using in wodFTPserver?
Regards,
Drazen
by Chris
, (7369 days ago) @ wodDrazen
Any protocol. I was coding a standard FTP server set-up and needed to monitor what folder the user was in and could not find a current path is in FTPserver user object. Then I thought, how will I know where is the user is? I could not see anything in the help.
by wodDrazen
, (7369 days ago) @ Chris
Hi Chris,
You can use ChangeDir Event and ResolvedPath and RelativePath variable.
ResolvedPath will show you full path to folder on your system and RelativePath will show you path that is seen by the user.
Here is example:
----------------------------------------------
Private Sub FtpD_ChangeDir(ByVal User As wodFTPDComLib.IFtpUser, ByVal RelativePath As String, ResolvedPath As String, Action As wodFTPDComLib.FtpActions)
Debug.Print User & User.Login & is in & ResolvedPath & folder. This is users folder & RelativePath
End Sub
----------------------------------------------
More help for ChangeDir Event you can find here:
http://www.weonlydo.com/FTPServer/Help/wodFTPDLib~wodFTPD~ChangeDir_EV.html
Hope this helps.
Regards,
Drazen

...not only that you provide these components at very reasonable cost, your responsiveness to emailed technical questions is simply outstanding...

...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...

...your service has been phenomenal. It's always quick and you are there when I need you.

The people at WeOnlyDo are amazing! ... I always get a super fast response from customer service, and the products are great too. Thanks WeOnlyDo

...not only that you provide these components at very reasonable cost, your responsiveness to emailed technical questions is simply outstanding...

Your support is fantastic.

Don't be fooled by the cost, it's value and quality far exceeds the price being charged!

...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!

Your customer service was excellent, and I will look at your products in the future for precisely that reason.

You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!

