diff --git a/lib/moodlelib.php b/lib/moodlelib.php index e437b12b4c4..fbe8c46484f 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4917,7 +4917,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); $output = null; $return = null; exec($command,$output,$return);