Re: mkdir and chmod failure
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
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. -- Alexander.