Re: FTP CHeck Remote Directory Exist

Giganews Newsgroups
Subject: Re: FTP CHeck Remote Directory Exist
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Thu, 6 Sep 2007

"fanix" <frank.claasse…@gmail.com> wrote in message
news:E4C690ED6E34E340frank.claasse…@gmail.com...

> How can i check if a remote directory already exist
> with the TidFTP Client?

Perform a directory listing of the parent folder and see if the desired
subfolder is included in the list.

Or simply try to navigate into the folder and see if it succeeds or fails.

> Before i want to create a directory i first want to check
> if it doesnt already exist, please help....

You don't need to check it beforehand.  Just create it.  If it already
exists, an error will be reported which you can catch.

Gambit

Replies

In response to

FTP CHeck Remote Directory Exist posted by fanix on Thu, 6 Sep 2007