User.CurrentPath (wodFTPServer)
How do I find the current user path?
How do I find the current user path?
by wodDrazen
, (7217 days ago) @ Chris
Hi Chris,
I have to ask you, what Protocol are you using in wodFTPserver?
Regards,
Drazen
by Chris
, (7217 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
, (7217 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

WeOnlyDo!COM will be the first stop I make should I require any further off-the-shelf components.

You have been great as far as offering support is concerned and has been extremely responsive to both support requests and suggestions for product enhancements.

It is very refreshing to find such helpful, knowledgeable and quick responding technical support.

We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...

WeOnlyDo!COM will be the first stop I make should I require any further off-the-shelf components.

Your support is fantastic.

Your support is fantastic.

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena

Brilliant, even works on the mobile phone...

