MDL-6850 Removed apparent-size from du command as it's not always available and appears to be useless anyway :-P

This commit is contained in:
moodler
2008-07-18 06:36:58 +00:00
parent 249de4f532
commit a8bf60a0ab
+1 -1
View File
@@ -4418,7 +4418,7 @@ function get_directory_size($rootdir, $excludefile='') {
// do it this way if we can, it's much faster
if (!empty($CFG->pathtodu) && is_executable(trim($CFG->pathtodu))) {
$command = trim($CFG->pathtodu).' -sk --apparent-size '.escapeshellarg($rootdir);
$command = trim($CFG->pathtodu).' -sk '.escapeshellarg($rootdir);
exec($command,$output,$return);
if (is_array($output)) {
return get_real_size(intval($output[0]).'k'); // we told it to return k.