List command can't see file without extention in file name

Giganews Newsgroups
Subject: List command can't see file without extention in file name
Posted by:  Tarvirdi (ma…@tarvirdi.com)
Date: Wed, 25 Jul 2007

Dear Friends,
I have FTP GET application and use indy 10.1.5 with delphi 7.
All things works well but there is a problem in listing files on server.
I noticed If I have filename without extention like "Afile." the "List"
command can't find it!!
If add extension to file name like "AFile.txt" then "List" command can find
it.
My FTPServer is win2003.
What can I do?
Thanks
Tarvirdi

with FTP do begin
      AutoLogin := True;
      Host := AIP;
      Port := APort;
      UserName := AUserName;
      Password := APassword;
      ConnectTimeout := 5*1000;
      Connect;
      TransferType := ftBinary;
      TransferTimeout := 5*1000;

      ChangeDir(SourceDir);

      // can't find files wtout extention ?????????????
      List(FilesList,'*.*',False);
end;

Replies