🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1684

Indy9 - TIdFTP - List - BCB6

#1684
From: Ohta
Date: Sun, 19 Nov 2006 05:19
30 lines
1848 bytes
Hello.

I have problems using Indy9 TIdFTPclient component on BCB6.

I'm trying to get the various informations, such as  FileName, Size and
ModiffiedDate
about FTP server files to use following code.

 try{
   TStringList *SL = new TStringList();
   IdFTP->List(SL,"*.txt",true);
   for(i=0;i<SL->Count;i++){
      Memo1->Lines->Add(IdFTP->DirectoryListing->Items[i]->FileName);
      Memo2->Lines->Add(IdFTP->DirectoryListing->Items[i]->Size);
      Memo3->Lines->Add(IdFTP->DirectoryListing->Items[i]->ModiffiedDate);
   }
 } __finally{
   delete SL;
 }

But  I can't get the correct information but get the following wrong
results.

Momo1 = "-r--r--r--   1 owner group  22592 Feb 27 23:02 test.txt"
Memo2 = "97031901151232"
Memo3 = "0:00:00"

Please tell me how to get the correct informations about FTP server files.

Regards, Ohta.
Technical Details
Message-ID: <455fe9f3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,38a935a5fc2ebefd,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ohta" <kinukinu8@ybb.ne.jp>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy9 - TIdFTP - List - BCB6
Date: Sun, 19 Nov 2006 14:19:20 +0900
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
X-Antivirus: avast! (VPS 0649-1, 2006/11/18), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 220.6.240.232
Message-ID: <455fe9f3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163913715 220.6.240.232 (18 Nov 2006 21:21:55 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail