# HG changeset patch # User Christopher Rogers # Date 1308598846 0 # Node ID eafccab821091a3b6ed26d8bed5fac07543eb9a5 # Parent 229bf48d394c8928a4a49ffa47e6ff998aedb020 mirror-tools: Fixed dir-generator.php to follow softlink for size and mtime info. diff -r 229bf48d394c -r eafccab82109 mirror-tools/slitaz/mirror/dir-generator.php --- a/mirror-tools/slitaz/mirror/dir-generator.php Sun Jun 19 16:09:09 2011 +0200 +++ b/mirror-tools/slitaz/mirror/dir-generator.php Mon Jun 20 19:40:46 2011 +0000 @@ -290,12 +290,12 @@ function my_filesize($path) // 2G+ file support { - return rtrim(shell_exec("stat -c %s '".$path."'")); + return rtrim(shell_exec("stat -Lc %s '".$path."'")); } function my_filemtime($path) // 2G+ file support { - return rtrim(shell_exec("stat -c %Y '".$path."'")); + return rtrim(shell_exec("stat -Lc %Y '".$path."'")); } // Get all of the folders and files.