Article View: borland.public.cppbuilder.internet.socket
Article #1021Using the TIdFTP Component to produce a list of filenames only...
From: Carl Danley
Date: Tue, 26 Jun 2007 19:19
Date: Tue, 26 Jun 2007 19:19
17 lines
2007 bytes
2007 bytes
Ok, I am using Borland C++ Builder 2006 with Indy 9... I am trying to implement a TIdFTP component into the program... I set permissions for the FTP account so that it can only see one folder on my FTP Server and all of its subfolders... I have also added a simple ListBox so that I can display the outcome of the List() function in it... I want to use the List() function to return a list of ONLY the filenames... Right now, I am getting all of this other stuff as well as the filenames... I created a bubble-sorting routine to filter ALL spaces out of the List() results... Everything worked fine until I tried filtering a name with spaces in it... It filters like this: unfiltered: my graduation.jpg filtered: graduation.jpg Is there anyway that I can implement something more simple to filter the filenames into a result that allows every filename possibility to be visible?
Technical Details
Message-ID:
<468166da$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,191a22c3ac94f58b,start X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Carl Danley" <cdanley@codebyter.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Using the TIdFTP Component to produce a list of filenames only... Date: Tue, 26 Jun 2007 15:19:55 -0400 Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16480 NNTP-Posting-Host: 132.170.43.146 Message-ID: <468166da$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182885594 132.170.43.146 (26 Jun 2007 12:19:54 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1824