Article View: borland.public.cppbuilder.internet.socket
Article #1324Re: BCB6 Pro, Indy 9, IdFTPServer LIST problems
From: Paul at NCF
Date: Wed, 21 Feb 2007 19:35
Date: Wed, 21 Feb 2007 19:35
31 lines
2198 bytes
2198 bytes
Hi, > You don't really have any control over that. My advise to you is to > use Unix style paths on the server as well. Okay thanks, I'll change that and give it a try. > I have posted examples of using TIdFTPServer before. For example: Thanks. > The OnListDirectory event is responsible for filling in the > TIdFTPListItems collection with the files and folders of the specified > directory. Thanks. Hopefully your examples will help. > The OnChangeDirectory event is responsible for validating, and > optionally modifying, the string that will be assigned to the > TIdFTPServerThread.CurrentDir property after the event handler exits. Okay. So I guess if the server decides that the directory is inhibited or non existent, it can change it? eg. change VDirectory param to current path rather than path requested? And/or can you send a failure response to the request? > That is not thread-safe. All of the server events are triggered in > the context of a worker thread, not the main thread. Access to GUI > controls needs to be synchronized, or unexpected things can happen. Okay. I'll modify the code.
Technical Details
Message-ID:
<45dc9ebe@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45d83fd9$1@newsgroups.borland.com> <45db41fd$1@newsgroups.borland.com> <45dc0f7a@newsgroups.borland.com> <45dc8ed6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4582a45f81472bd4 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul at NCF" <notplmacca@clara.co.uk> Newsgroups: borland.public.cppbuilder.internet.socket References: <45d83fd9$1@newsgroups.borland.com> <45db41fd$1@newsgroups.borland.com> <45dc0f7a@newsgroups.borland.com> <45dc8ed6$1@newsgroups.borland.com> Subject: Re: BCB6 Pro, Indy 9, IdFTPServer LIST problems Date: Wed, 21 Feb 2007 19:35:07 -0000 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 86.132.255.146 Message-ID: <45dc9ebe@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172086462 86.132.255.146 (21 Feb 2007 11:34:22 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail