cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: "No such file or directory" error and local empty file.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 4 May 2004 09:51:41 +0200 (CEST)

On Mon, 3 May 2004, Alexander Krasnostavsky wrote:

> I am using curl-7.11.2 for FTP on UNIX.
>
> I noticed that when "No such file or directory" error occurred while getting
> a file from remote machine to local, on the local machine created zero size
> file.

Can you show us the exact command line/output that caused this? With -v?

> This cause an ambiguity because it is the same case as an existing file of
> zero size was copied.

I agree.

> I do not use CURLOPT_WRITEFUNCTION option and I think that it will be better
> if the file will be not created on the local machine.

So you used the library and not the command line tool?

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-04