Nikolay Simeonov wrote:
> But in this case FTPclient1.Dir would return true and in my case it's
> returning false. 

Check the StatusCode, on listing an empty directory it may be either 450 or 550.

450 Requested file action not taken. File unavailable (e.g., file busy).
550 Requested action not taken. File unavailable (e.g., file not found, no 

> However no exception is thrown and I'm lost how to figure
> out WHY I'm getting false there and what the problem could be.
> Everything is working just fine as Windows Application - it's getting the
> folder listing, downloading the files etc., but when I use the same unit
> in a Service I'm getting false when I call the DIR function.

So you are not listing an empty directory here.

> If the
> windows program was crashing I would easier debug it but in the service I
> cannot go step by step through the component's sources.

Arno Garrels 

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to