Re: Directory Exist

Giganews Newsgroups
Subject: Re: Directory Exist
Posted by:  J. Peter Mugaas (oma002…
Date: Sun, 17 Oct 2004

On Sun, 17 Oct 2004 09:11:00 +0200, Heiko Rompel wrote:

> Hello,
> i use Indy 9.0.17 with Delphi 6 Pro.
> Now i search a way to check for a directory exist.
> i use TidFTP and will check after IdFTP1.ChangeDir
> for exist the directory, but i found no way.
> Try...except - no!
> {I-} {I+} ioresult - no!
> All time Changedir change to a not exist dir without
> a error.
> Can somebody please help me?
The FTP Protocol does NOT provide a way to check the existance of a
directory.  The thing you probably need to do is catch the exception in a
try..except block.  The exception is EIdReplyException.



In response to

Directory Exist posted by Heiko Rompel on Sun, 17 Oct 2004