| @@ 1285-1287 (lines=3) @@ | ||
| 1282 | * @author Dmitry (dio) Levashov |
|
| 1283 | **/ |
|
| 1284 | public function ls($hash) { |
|
| 1285 | if (($dir = $this->dir($hash)) == false || !$dir['read']) { |
|
| 1286 | return false; |
|
| 1287 | } |
|
| 1288 | ||
| 1289 | $list = array(); |
|
| 1290 | $path = $this->decode($hash); |
|
| @@ 2092-2094 (lines=3) @@ | ||
| 2089 | * @author Naoki Sawada |
|
| 2090 | */ |
|
| 2091 | public function getContentUrl($hash, $options = array()) { |
|
| 2092 | if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) { |
|
| 2093 | return false; |
|
| 2094 | } |
|
| 2095 | return $file['url']; |
|
| 2096 | } |
|
| 2097 | ||