|Subject:||Indy10: TIdFTPServer.CommandCWD(ASender: TIdCommand) - HomeDir Question|
|Date:||Thu, 12 Oct 2006|
I have problem determining if my client FTP apps calls ChangeDir('.')
because in TIdFTPServer.CommandCWD(ASender: TIdCommand) the variable s
is set to LF.CurrentDir:
if s = '.' then
s := LF.CurrentDir; //Shouldn't s just leave '.'?
in the OnChangeDirectory i can not determine if ChangeDir('.') was
called because the VDirectory parameter is the CurrentDir + s (which is
also the CurrentDir) so that s is twice the CurrentDir.
If s would be '.' i.e. VDirectory would also be '.' I could check for
that and could set VDirectory to the clients homedir.
Or is there any other solution?
God bless you