You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Manfred Schuh (CESOFT GmbH, Bielefeld)" <sc...@cesoft.de> on 2003/07/03 15:46:35 UTC

time of apr_file_copy destination

hi,

if I copy a file using apr_file_copy the destination file has the actual
time as creation time.
I would have expected the time being the same as the source file as e.g. as
WIN32 CopyFile does?

Mit freundlichen Grüßen

Manfred Schuh

CESOFT Softwareentwicklung GmbH
Herforder Straße 155 a
D-33609 Bielefeld

Fon +49 (521) 9 32 31-0
Fax +49 (521) 9 32 31-11

Mail <ma...@cesoft.de>
Web <http://www.cesoft.de/>



Re: time of apr_file_copy destination

Posted by Branko Čibej <br...@xbc.nu>.
Manfred Schuh (CESOFT GmbH, Bielefeld) wrote:

>hi,
>
>if I copy a file using apr_file_copy the destination file has the actual
>time as creation time.
>I would have expected the time being the same as the source file as e.g. as
>WIN32 CopyFile does?
>
It doesn't. :-) The creation time of the copy is always the current
time, but the modification time is the same as the source's. It's quite
possible on Windows to have a file that looks like it was created after
it was modified.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/