[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: APR question

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-09-09 00:58:22 CEST

On Fri, Sep 08, 2000 at 03:39:35PM -0500, Karl Fogel wrote:
> How does one use APR to copy a file? I was looking for something like:
>
> apr_status_t apr_copy_file (const char *src, const char *dst);
>
> but it doesn't appear to exist. The analogous remove and rename
> functions do exist, though.

Correct. There is no function for copying a file -- you would need to write
one which used a read/write loop to copy the file.

> Should I not be using APR for that?

Not sure I understand. You would write a function which used APR to do the
read/write. Or are you asking whether APR "should" have a copy function?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.