Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: check for File Exists on Server without Exception
ublben

From: Roth, Germany
Posts: 1
Member Since: 06/06/08
posted June 6, 2008 2:50 AM

Hello,

i will check for File Exists on Server without any Exception.

I have tried with the List method, but when are no files on server there comes an exception.

i tried a lots of another ways, but i got an exeption always.

please help
thanks
Benjamin
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 10, 2008 10:34 AM

Hi Benjamin,
Some servers will send an empty listing, some will not, which causes the exception.

You should simply handle the exception in these cases, and treat it like you would an empty listing.

Hope it helps,
-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX