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:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user