User.CurrentPath (wodFTPServer)
by Chris, Friday, September 15, 2006, 13:16 (6644 days ago)
How do I find the current user path?
Re: User.CurrentPath
by wodDrazen, Friday, September 15, 2006, 13:32 (6644 days ago) @ Chris
Hi Chris,
I have to ask you, what Protocol are you using in wodFTPserver?
Regards,
Drazen
Re: User.CurrentPath
by Chris, Friday, September 15, 2006, 14:26 (6644 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.
Re: User.CurrentPath
by wodDrazen, Friday, September 15, 2006, 14:41 (6644 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