Re: lftp 3.1 : problem with webdav MOVE
"Alexander V. Lukyanov" <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 07, 2005 at 12:53:23AM +0100, Clement Hermann wrote: > Concerning this, I might be able to provide a patch, but I need some > advice: how should we test that the destination is a directory, for maximum > consistency ? By creating a boolean function (say, IsDirectory) and > modifying the RENAME case in Http::Send ? For testing if the destination is a directory, it is necessary to modify mvJob class, not Http. You could use GetFileInfo class and LsCache::IsDirectory for quick cache lookup. > >2) when moving a file, lftp wait forever after receiving the response > >from server (unless it is an error). The command must be interrupted > >with ctrl+c : > >[snip] > > attached is a patch that fixes this issue. Hope I didn't messed up, I'm a > beginner both with lftp and C++ ;) Thanks for the patch. I have fixed it differently, though. -- Alexander. | http://www.yars.free.net/~lav/