| @@ 1349-1351 (lines=3) @@ | ||
| 1346 | * @author Dmitry (dio) Levashov |
|
| 1347 | **/ |
|
| 1348 | public function ls($hash) { |
|
| 1349 | if (($dir = $this->dir($hash)) == false || !$dir['read']) { |
|
| 1350 | return false; |
|
| 1351 | } |
|
| 1352 | ||
| 1353 | $list = array(); |
|
| 1354 | $path = $this->decode($hash); |
|
| @@ 2159-2161 (lines=3) @@ | ||
| 2156 | * @author Naoki Sawada |
|
| 2157 | */ |
|
| 2158 | public function getContentUrl($hash, $options = array()) { |
|
| 2159 | if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) { |
|
| 2160 | return false; |
|
| 2161 | } |
|
| 2162 | return $file['url']; |
|
| 2163 | } |
|
| 2164 | ||