Thread File::Copy (1 answers)
Opened by Andreas at 2011-07-07 09:41

rosti
 2011-07-07 09:48
#150206 #150206
User since
2011-03-19
3211 Artikel
BenutzerIn
[Homepage]
user image
schau Dir mal utime() an.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
  utime LIST
Changes the access and modification times on each file of a list
of files. The first two elements of the list must be the
NUMERICAL access and modification times, in that order. Returns
the number of files successfully changed. The inode change time
of each file is set to the current time. This code has the same
effect as the "touch" command if the files already exist:

#!/usr/bin/perl
$now = time;
utime $now, $now, @ARGV;



Edit: Siehe auch File::Copy::syscopy, *::rmscopy
Da kannst Du Flags mitgeben (z.B. mtime).
Last edited: 2011-07-07 13:09:41 +0200 (CEST)

View full thread File::Copy