@@ 1106-1118 (lines=13) @@ | ||
1103 | return true; |
|
1104 | } |
|
1105 | if (is_dir($path)) { |
|
1106 | foreach (scandir($path) as $name) { |
|
1107 | if ($name != '.' && $name != '..') { |
|
1108 | $p = $path.DIRECTORY_SEPARATOR.$name; |
|
1109 | if (is_link($p)) { |
|
1110 | return true; |
|
1111 | } |
|
1112 | if (is_dir($p) && $this->_findSymlinks($p)) { |
|
1113 | return true; |
|
1114 | } elseif (is_file($p)) { |
|
1115 | $this->archiveSize += sprintf('%u', filesize($p)); |
|
1116 | } |
|
1117 | } |
|
1118 | } |
|
1119 | } else { |
|
1120 | $this->archiveSize += sprintf('%u', filesize($path)); |
|
1121 | } |
@@ 1437-1449 (lines=13) @@ | ||
1434 | return true; |
|
1435 | } |
|
1436 | if (is_dir($path)) { |
|
1437 | foreach (scandir($path) as $name) { |
|
1438 | if ($name != '.' && $name != '..') { |
|
1439 | $p = $path.DIRECTORY_SEPARATOR.$name; |
|
1440 | if (is_link($p)) { |
|
1441 | return true; |
|
1442 | } |
|
1443 | if (is_dir($p) && $this->_findSymlinks($p)) { |
|
1444 | return true; |
|
1445 | } elseif (is_file($p)) { |
|
1446 | $this->archiveSize += filesize($p); |
|
1447 | } |
|
1448 | } |
|
1449 | } |
|
1450 | } else { |
|
1451 | $this->archiveSize += filesize($path); |
|
1452 | } |