|
@@ 1377-1379 (lines=3) @@
|
| 1374 |
|
public function tree($hash='', $deep=0, $exclude='') { |
| 1375 |
|
$path = $hash ? $this->decode($hash) : $this->root; |
| 1376 |
|
|
| 1377 |
|
if (($dir = $this->stat($path)) == false || $dir['mime'] != 'directory') { |
| 1378 |
|
return false; |
| 1379 |
|
} |
| 1380 |
|
|
| 1381 |
|
$dirs = $this->gettree($path, $deep > 0 ? $deep -1 : $this->treeDeep-1, $exclude ? $this->decode($exclude) : null); |
| 1382 |
|
array_unshift($dirs, $dir); |
|
@@ 1457-1460 (lines=4) @@
|
| 1454 |
|
* @author Dmitry (dio) Levashov |
| 1455 |
|
**/ |
| 1456 |
|
public function open($hash) { |
| 1457 |
|
if (($file = $this->file($hash)) == false |
| 1458 |
|
|| $file['mime'] == 'directory') { |
| 1459 |
|
return false; |
| 1460 |
|
} |
| 1461 |
|
|
| 1462 |
|
return $this->fopenCE($this->decode($hash), 'rb'); |
| 1463 |
|
} |