[Delphi Indy 9.0.3.B] Bug in List commando??

Pagina: 1
Acties:

  • Hu9o
  • Registratie: Mei 2001
  • Laatst online: 07-09 09:15

Hu9o

Schokkend

Topicstarter
Hallo,

Ik ben met de nieuwe componenten van indy aan het prutsen.
Nu loop ik tegen iets raars op.

Uit de help:
Description

List is a procedure used to request a list of files or directories in the current directory on the FTP server.

ADest is the TStringList used to store the information requested.

ASpecifier is a String that contains a mask indicating the files and/or directories to be included in the listing. ASpecifier can contain common wildcard characters like '*' and '?'. Some useful masks include:

*.* - All files in the current directory.
* - All directory entries in the current directory.
*. - All files regardless of extension in the current directory.
A??.txt - All text files that have a 3-character name starting with 'A'.
In de source heb ik dus dit gebruikt:
code:
1
IdFTP.List(slDirs,'*',true);

In de current dir heb ik directories staan en bestanden.
Als ik slDir in een memo zet ziet het er als volgt uit:
code:
1
2
3
4
5
-rw-r--r--  1 1478  1001  6699 May 30 10:13 ikbenbestand.txt

ikbendir:

enikook:

Waarom krijg ik dus ook dat bestand er bij??
Als ik de boolean op false zet dan krijg ik een lege string.

Iemand die me kan helpen??

>>>>>>>>>>>>>>>>>>>>>>>>>Vertel Microsoft over dit probleem <<<<<<<<<<<<<<<<<<<<<<<<<


  • whoami
  • Registratie: December 2000
  • Laatst online: 19:30
Misschien dat je bij de makers van die Indy componenten meer geluk hebt?

https://fgheysels.github.io/