Alexander V. Lukyanov wrote: > 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. > > > I wouldn't have found this myself, thanks :)
>>>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. > > Everything works well now (as far as I have tested). I liked my method, because we never entered the RECEIVING_BODY state that way, but yours works perfectly, and you make decisions after all :) Best regards and thanks again. -- Clément Hermann