On Sunday 27 of March 2005 09:00, Alexander V. Lukyanov wrote:
> On Sat, Mar 26, 2005 at 12:45:32PM +0100, Tomasz Grobelny wrote:
> > How can I detect Ftp::Mkdir and Ftp::Chmod (and propably other write
> > operations) failure? I tried Ftp::GetErrorCode() but it always returns 0.
> > Of course I can check if directory listing changed but this doesn't seem
> > to be The Right Way (tm).
>
> Those operations should be monitored with Ftp::Done method. When
> Ftp::Done returns Ftp::IN_PROGRESS, then the operation is in progress,
> Ftp::OK means the operation is successful, other codes mean errors,
> and their text can be retrieved with Ftp::StrError.
The problem was that I assumed that Ftp::Done returns positive value when the 
operation is done, 0 otherwise. Thanks for the answer.

Tomek

Reply via email to