slitaz-dev-tools rev 122

mirror-tools: Fixed dir-generator.php to follow softlink for size and mtime info.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 20 19:40:46 2011 +0000 (2011-06-20)
parents 229bf48d394c
children bb83a9345648
files mirror-tools/slitaz/mirror/dir-generator.php
line diff
     1.1 --- a/mirror-tools/slitaz/mirror/dir-generator.php	Sun Jun 19 16:09:09 2011 +0200
     1.2 +++ b/mirror-tools/slitaz/mirror/dir-generator.php	Mon Jun 20 19:40:46 2011 +0000
     1.3 @@ -290,12 +290,12 @@
     1.4  
     1.5  function my_filesize($path)	// 2G+ file support
     1.6  {
     1.7 -	return rtrim(shell_exec("stat -c %s '".$path."'"));
     1.8 +	return rtrim(shell_exec("stat -Lc %s '".$path."'"));
     1.9  }
    1.10  
    1.11  function my_filemtime($path)	// 2G+ file support
    1.12  {
    1.13 -	return rtrim(shell_exec("stat -c %Y '".$path."'"));
    1.14 +	return rtrim(shell_exec("stat -Lc %Y '".$path."'"));
    1.15  }
    1.16  
    1.17  // Get all of the folders and files.