Re: lftp 3.1 : problem with webdav MOVE

nodens <[email protected]>
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.