apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manfred Schuh \(CESOFT GmbH, Bielefeld\)" <sc...@cesoft.de>
Subject time of apr_file_copy destination on win32 - update
Date Fri, 04 Jul 2003 08:16:59 GMT
hi,

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

my test program copy input.txt to input.apr using apr_file_copy and
to apr.dos using DosCopy

cc:/tmp/input.txt C:-1386468208 M:246172 A:-1354707840
C:Fri Jul 04 09:26:37 2003 M:Thu Jan 23 09:30:26 2003 A:Fri Jul 04 00:00:00
2003
c:/tmp/input.apr C:-1378568208 M:246172 A:1841792
C:Fri Jul 04 09:26:45 2003 M:Fri Jul 04 09:49:46 2003 A:Fri Jul 04 00:00:00
2003
c:/tmp/input.dos C:-1378568208 M:246172 A:-1354707840
C:Fri Jul 04 09:26:45 2003 M:Thu Jan 23 09:30:26 2003 A:Fri Jul 04 00:00:00
2003

you see the creation time is identical (but both wrong - should be either
identical to the normal time or the actual time which was 09:49)
the modifcation time is different - apr_file_copy sets the actual time -
DosCopy uses the modification time of the source

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 <mailto:schuh@cesoft.de>
Web <http://www.cesoft.de/>




Mime
View raw message