Skip to content
Browse files

MDL-6850 Removed apparent-size from du command as it's not always ava…

…ilable and appears to be useless anyway :-P
  • Loading branch information...
1 parent 249de4f commit a8bf60a0abeab0bd8e938c8f4afb4dc571290cc2 moodler committed Jul 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
2 lib/moodlelib.php
@@ -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.

0 comments on commit a8bf60a

Please sign in to comment.
Something went wrong with that request. Please try again.