Indy10: TIdFTPServer.CommandCWD(ASender: TIdCommand) - HomeDir Question

Giganews Newsgroups
Subject: Indy10: TIdFTPServer.CommandCWD(ASender: TIdCommand) - HomeDir Question
Posted by:  Gordon_K√§stner
Date: Thu, 12 Oct 2006

Hi,

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
begin
  s := LF.CurrentDir; //Shouldn't s just leave '.'?
end;

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?

TIA

God bless you

Replies