fixed function name
This commit is contained in:
parent
07e699f64e
commit
3b33d8a17f
|
|
@ -3,7 +3,7 @@
|
||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-01-16 23:01:33
|
* @Date: 2016-01-16 23:01:33
|
||||||
* @Last Modified by: printempw
|
* @Last Modified by: printempw
|
||||||
* @Last Modified time: 2016-03-06 14:40:12
|
* @Last Modified time: 2016-03-06 15:44:32
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Utils
|
class Utils
|
||||||
|
|
@ -72,10 +72,10 @@ class Utils
|
||||||
$dh = opendir($dir);
|
$dh = opendir($dir);
|
||||||
$size = 0;
|
$size = 0;
|
||||||
while(false !== ($file = @readdir($dh))) {
|
while(false !== ($file = @readdir($dh))) {
|
||||||
if ($file!='.' and $file!='..') {
|
if ($file!='.' && $file!='..') {
|
||||||
$path = $dir.'/'.$file;
|
$path = $dir.'/'.$file;
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
$size += $this->dir_size($path);
|
$size += $this->getDirSize($path);
|
||||||
} else if (is_file($path)) {
|
} else if (is_file($path)) {
|
||||||
$size += filesize($path);
|
$size += filesize($path);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user